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

Java side template changes

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-06-03 15:57:08 -03:00
parent 4d6289b12c
commit 5990a97dfd
27 changed files with 500 additions and 484 deletions

View File

@@ -29,10 +29,16 @@ public interface Model<T extends ID<?>> {
T getID();
/**
* Please note that the ID can only be set one time. Once it has been set,
* it cannot be changed and a {@link IllegalStateException} will be thrown
* if trying to change the ID.
*
* @param ID
* the object ID to set
* @throws IllegalStateException
* if the ID was already set
*/
void setID(T ID);
void setID(T ID) throws IllegalStateException;
/**
* @return the database object desire