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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user