org.jbpm.pvm.internal.id
Class PropertyImpl
java.lang.Object
org.jbpm.pvm.internal.id.PropertyImpl
public class PropertyImpl
- extends java.lang.Object
jbpm installation properties.
currently there are 2 use cases for these properties:
1) include the jbpm schema version into the DB
2) have a record to maintain the next dbid for the id generator
- Author:
- Tom Baeyens
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DB_VERSION_KEY
public static final java.lang.String DB_VERSION_KEY
- See Also:
- Constant Field Values
NEXT_DBID_KEY
public static final java.lang.String NEXT_DBID_KEY
- See Also:
- Constant Field Values
version
protected int version
key
protected java.lang.String key
value
protected java.lang.String value
PropertyImpl
protected PropertyImpl()
PropertyImpl
public PropertyImpl(java.lang.String key,
java.lang.String value)
getNextDbid
public static java.lang.Long getNextDbid(org.hibernate.Session session)
setNextDbid
public static void setNextDbid(org.hibernate.Session session,
long nextDbid)
getDbVersion
public static java.lang.String getDbVersion(org.hibernate.Session session)
setDbVersionToLibraryVersion
public static void setDbVersionToLibraryVersion(org.hibernate.Session session)
createProperties
public static void createProperties(org.hibernate.Session session)
initializeNextDbid
public static void initializeNextDbid(org.hibernate.Session session)
propertiesTableExists
public static boolean propertiesTableExists(org.hibernate.Session session)
getMaxDbid
protected static long getMaxDbid(org.hibernate.Session session)
getPropertyValue
protected static java.lang.String getPropertyValue(org.hibernate.Session session,
java.lang.String propertyKey)
setPropertyValue
protected static void setPropertyValue(org.hibernate.Session session,
java.lang.String propertyKey,
java.lang.String propertyValue)
getProperty
protected static PropertyImpl getProperty(org.hibernate.Session session,
java.lang.String key)
setDbVersionTo41
public static void setDbVersionTo41(org.hibernate.Session session)
getKey
public java.lang.String getKey()
getValue
public java.lang.String getValue()
setValue
public void setValue(java.lang.String value)
Copyright © 2010 JBoss Community. All Rights Reserved.