public class VersionImpl extends de.willuhn.datasource.db.AbstractDBObject implements Version
CREATE TABLE version (
id NUMERIC default UNIQUEKEY('version'),
name varchar(255) NOT NULL,
version int(5) NOT NULL,
UNIQUE (id),
PRIMARY KEY (id)
);
Getters und Setters für den Primary Key (id) sind nicht nötig. Jede
Methode muss zwingend eine RemoteException werfen. | Constructor and Description |
|---|
VersionImpl()
Standart Konstruktor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Liefert den Namen der Version.
|
java.lang.String |
getPrimaryAttribute() |
protected java.lang.String |
getTableName() |
int |
getVersion()
Liefert den aktuellen Stand der Version.
|
void |
insert() |
protected void |
insertCheck() |
void |
setName(java.lang.String name)
Speichert den Namen der Version.
|
void |
setVersion(int newVersion)
Legt die neue Versionsnummer fest.
|
protected void |
updateCheck() |
addDeleteListener, addStoreListener, clear, delete, deleteCheck, equals, getAttribute, getAttributeNames, getAttributeType, getForeignObject, getID, getIDField, getInsertSQL, getList, getListQuery, getLoadQuery, getService, getUpdateSQL, hasChanged, hasChanged, init, isNewObject, load, overwrite, removeDeleteListener, removeStoreListener, setAttribute, setID, setService, store, transactionBegin, transactionCommit, transactionRollbackclone, exportObject, exportObject, exportObject, unexportObjectequals, getRef, hashCode, toString, toStubfinalize, getClass, notify, notifyAll, wait, wait, waitaddDeleteListener, addStoreListener, equals, getAttribute, getAttributeType, getList, load, removeDeleteListener, removeStoreListenerpublic VersionImpl()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic java.lang.String getName()
throws java.rmi.RemoteException
VersiongetName in interface Versionjava.rmi.RemoteExceptionVersion.getName()public java.lang.String getPrimaryAttribute()
throws java.rmi.RemoteException
getPrimaryAttribute in interface de.willuhn.datasource.GenericObjectgetPrimaryAttribute in interface de.willuhn.datasource.rmi.DBObjectgetPrimaryAttribute in class de.willuhn.datasource.db.AbstractDBObjectjava.rmi.RemoteExceptionAbstractDBObject.getPrimaryAttribute()public int getVersion()
throws java.rmi.RemoteException
VersiongetVersion in interface Versionjava.rmi.RemoteExceptionVersion.getVersion()public void insert()
throws java.rmi.RemoteException,
de.willuhn.util.ApplicationException
insert in class de.willuhn.datasource.db.AbstractDBObjectjava.rmi.RemoteExceptionde.willuhn.util.ApplicationExceptionAbstractDBObject.insert()public void setName(java.lang.String name)
throws java.rmi.RemoteException
VersionsetName in interface Versionname - Name der Version.java.rmi.RemoteExceptionVersion.setName(java.lang.String)public void setVersion(int newVersion)
throws java.rmi.RemoteException
VersionsetVersion in interface VersionnewVersion - die neue Versionsnummer.java.rmi.RemoteExceptionVersion.setVersion(int)protected java.lang.String getTableName()
getTableName in class de.willuhn.datasource.db.AbstractDBObjectAbstractDBObject.getTableName()protected void insertCheck()
throws de.willuhn.util.ApplicationException
insertCheck in class de.willuhn.datasource.db.AbstractDBObjectde.willuhn.util.ApplicationExceptionAbstractDBObject.insertCheck()protected void updateCheck()
throws de.willuhn.util.ApplicationException
updateCheck in class de.willuhn.datasource.db.AbstractDBObjectde.willuhn.util.ApplicationExceptionAbstractDBObject.updateCheck()