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
-
Constructor Summary
ModifierConstructorDescriptionprotected
RPZoneDAO(RPObjectFactory factory)
creates a new RPZoneDAO -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasRPZone(IRPZone.ID zone)
Deprecated.boolean
hasRPZone(DBTransaction transaction, IRPZone.ID zone)
is the specified zone saved to the databasevoid
loadRPZone(IRPZone zone)
loads storable objects for the specified zone from the databasevoid
loadRPZone(DBTransaction transaction, IRPZone zone)
loads storable objects for the specified zone from the databasevoid
storeRPZone(IRPZone zone)
Deprecated.void
storeRPZone(DBTransaction transaction, IRPZone zone)
saves storable objects for the specified zone to the databasevoid
storeRPZone(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
-