org.jbpm.pvm.internal.id
Class PropertyImpl

java.lang.Object
  extended by 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

Field Summary
static java.lang.String DB_VERSION_KEY
           
protected  java.lang.String key
           
static java.lang.String NEXT_DBID_KEY
           
protected  java.lang.String value
           
protected  int version
           
 
Constructor Summary
protected PropertyImpl()
           
  PropertyImpl(java.lang.String key, java.lang.String value)
           
 
Method Summary
static void createProperties(org.hibernate.Session session)
           
static java.lang.String getDbVersion(org.hibernate.Session session)
           
 java.lang.String getKey()
           
protected static long getMaxDbid(org.hibernate.Session session)
           
static java.lang.Long getNextDbid(org.hibernate.Session session)
           
protected static PropertyImpl getProperty(org.hibernate.Session session, java.lang.String key)
           
protected static java.lang.String getPropertyValue(org.hibernate.Session session, java.lang.String propertyKey)
           
 java.lang.String getValue()
           
static void initializeNextDbid(org.hibernate.Session session)
           
static boolean propertiesTableExists(org.hibernate.Session session)
           
static void setDbVersionTo41(org.hibernate.Session session)
           
static void setDbVersionToLibraryVersion(org.hibernate.Session session)
           
static void setNextDbid(org.hibernate.Session session, long nextDbid)
           
protected static void setPropertyValue(org.hibernate.Session session, java.lang.String propertyKey, java.lang.String propertyValue)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PropertyImpl

protected PropertyImpl()

PropertyImpl

public PropertyImpl(java.lang.String key,
                    java.lang.String value)
Method Detail

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.