1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-09 08:52:51 +00:00

DAO abstractions and updated 'npc' sql file

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-23 12:51:52 -03:00
parent 66d5fee187
commit 1909bb06cc
41 changed files with 42265 additions and 41874 deletions

View File

@@ -35,13 +35,17 @@ public interface Model<T extends ID<?>> {
void setID(T ID);
/**
* @return true if object is already inserted in the database
* @return the database object state
*/
boolean isInDatabase();
ObjectState getObjectState();
/**
* @param state
* the database state
* the database object state to set
*/
void setIsInDatabase(boolean state);
void setObjectState(ObjectState state);
public enum ObjectState {
STORED, NOT_STORED, ORPHAN;
}
}