public class CrsData extends java.lang.Object implements java.lang.Comparable, Persistent
Constructor and Description |
---|
CrsData() |
CrsData(java.lang.String authority,
int code,
java.lang.String name) |
CrsData(java.lang.String authority,
int code,
java.lang.String name,
java.util.Date date) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
java.lang.String |
getAuthority() |
int |
getCode() |
java.util.Date |
getDate() |
java.lang.String |
getName() |
java.util.Properties |
getProperies() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setAuthority(java.lang.String authority) |
void |
setCode(int code) |
void |
setName(java.lang.String name) |
void |
setProperies(java.util.Properties properies) |
void |
updateLastAccess() |
public CrsData(java.lang.String authority, int code, java.lang.String name)
public CrsData(java.lang.String authority, int code, java.lang.String name, java.util.Date date)
public CrsData()
public java.lang.String getAuthority()
public int getCode()
public java.lang.String getName()
public java.util.Properties getProperies()
public void setProperies(java.util.Properties properies)
properies
- The properies to set.public void setAuthority(java.lang.String authority)
public void setCode(int code)
public void setName(java.lang.String name)
public java.util.Date getDate()
public void updateLastAccess()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public static void registerPersistence()