Package marauroa.server.game.db
Class RPZoneDAO
java.lang.Object
marauroa.server.game.db.RPZoneDAO
data access object for RPZones
- Author:
- miguel, hendrik
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRPZoneDAO(RPObjectFactory factory)creates a new RPZoneDAO -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasRPZone(IRPZone.ID zone)Deprecated.booleanhasRPZone(DBTransaction transaction, IRPZone.ID zone)is the specified zone saved to the databasevoidloadRPZone(IRPZone zone)loads storable objects for the specified zone from the databasevoidloadRPZone(DBTransaction transaction, IRPZone zone)loads storable objects for the specified zone from the databasevoidstoreRPZone(IRPZone zone)Deprecated.voidstoreRPZone(DBTransaction transaction, IRPZone zone)saves storable objects for the specified zone to the databasevoidstoreRPZone(DBTransaction transaction, IRPZone zone, Iterable<RPObject> content)saves storable objects for the specified zone to the database
-
Field Details
-
factory
factory for creating object instances
-
-
Constructor Details
-
RPZoneDAO
creates a new RPZoneDAO- Parameters:
factory- factory for creating object instances
-
-
Method Details
-
loadRPZone
loads storable objects for the specified zone from the database- Parameters:
transaction- DBTransactionzone- IRPZone- Throws:
IOException- in case of an input/output errorSQLException- in case of an database error
-
storeRPZone
saves storable objects for the specified zone to the database- Parameters:
transaction- DBTransactionzone- IRPZone- Throws:
IOException- in case of an input/output errorSQLException- in case of an database error
-
storeRPZone
public void storeRPZone(DBTransaction transaction, IRPZone zone, Iterable<RPObject> content) throws IOException, SQLExceptionsaves storable objects for the specified zone to the database- Parameters:
transaction- DBTransactionzone- IRPZonecontent- the RPObjects of that zone- Throws:
IOException- in case of an input/output errorSQLException- in case of an database error
-
hasRPZone
is the specified zone saved to the database- Parameters:
transaction- DBTransactionzone- id of zone- Returns:
- true, if the zone exists; false otherwise
- Throws:
SQLException- in case of an database error
-
loadRPZone
loads storable objects for the specified zone from the database- Parameters:
zone- IRPZone- Throws:
IOException- in case of an input/output errorSQLException- in case of an database error
-
storeRPZone
Deprecated.saves storable objects for the specified zone to the database- Parameters:
zone- IRPZone- Throws:
IOException- in case of an input/output errorSQLException- in case of an database error
-
hasRPZone
Deprecated.is the specified zone saved to the database- Parameters:
zone- id of zone- Returns:
- true, if the zone exists; false otherwise
- Throws:
SQLException- in case of an database error
-