@Entity
public class ActiveRevisions
extends java.lang.Object
Constructor and Description |
---|
ActiveRevisions()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ActiveRevisions |
get(org.hibernate.Session session)
Gets the ActiveRevisions object using the passed in database session.
|
static ActiveRevisions |
get(java.lang.String agencyId)
Reads revisions from database.
|
int |
getConfigRev() |
int |
getTravelTimesRev() |
boolean |
isValid() |
void |
setConfigRev(int configRev)
Sets the config rev.
|
void |
setConfigRev(org.hibernate.Session session,
int configRev)
Updates configRev member and calls saveOrUpdate(this) on the session.
|
void |
setTravelTimesRev(int travelTimeRev)
Sets the travel time rev.
|
void |
setTravelTimesRev(org.hibernate.Session session,
int travelTimeRev)
Updates travelTimeRev member and calls saveOrUpdate(this) on the session.
|
java.lang.String |
toString() |
public ActiveRevisions()
public static ActiveRevisions get(org.hibernate.Session session) throws org.hibernate.HibernateException
session
- org.hibernate.HibernateException
public static ActiveRevisions get(java.lang.String agencyId) throws org.hibernate.HibernateException
agencyId
- org.hibernate.HibernateException
public void setConfigRev(org.hibernate.Session session, int configRev)
session
- configRev
- public void setTravelTimesRev(org.hibernate.Session session, int travelTimeRev)
session
- travelTimeRev
- public void setTravelTimesRev(int travelTimeRev)
travelTimeRev
- public void setConfigRev(int configRev)
configRev
- public int getConfigRev()
public int getTravelTimesRev()
public boolean isValid()
public java.lang.String toString()
toString
in class java.lang.Object