org.kuali.rice.core.framework.persistence.ojb
Class ConfigurableSequenceManager

java.lang.Object
  extended by org.kuali.rice.core.framework.persistence.ojb.ConfigurableSequenceManager
All Implemented Interfaces:
org.apache.ojb.broker.util.sequence.SequenceManager

public class ConfigurableSequenceManager
extends Object
implements org.apache.ojb.broker.util.sequence.SequenceManager

A sequence manager implementation which can be configured at runtime via the KEW Configuration API.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ConfigurableSequenceManager(org.apache.ojb.broker.PersistenceBroker broker)
           
 
Method Summary
 void afterStore(org.apache.ojb.broker.accesslayer.JdbcAccess jdbcAccess, org.apache.ojb.broker.metadata.ClassDescriptor classDescriptor, Object object)
           
protected  org.apache.ojb.broker.util.sequence.SequenceManager createSequenceManager(org.apache.ojb.broker.PersistenceBroker broker)
           
 org.apache.ojb.broker.PersistenceBroker getBroker()
           
protected  org.apache.ojb.broker.util.sequence.SequenceManager getConfiguredSequenceManager()
           
 String getPropertyPrefix()
           
protected  String getSequenceManagerClassNameProperty(String propertyPrefix)
           
protected  Properties getSequenceManagerConfigProperties(String propertyPrefix)
           
 Object getUniqueValue(org.apache.ojb.broker.metadata.FieldDescriptor fieldDescriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableSequenceManager

public ConfigurableSequenceManager(org.apache.ojb.broker.PersistenceBroker broker)
Method Detail

createSequenceManager

protected org.apache.ojb.broker.util.sequence.SequenceManager createSequenceManager(org.apache.ojb.broker.PersistenceBroker broker)

getSequenceManagerClassNameProperty

protected String getSequenceManagerClassNameProperty(String propertyPrefix)

getConfiguredSequenceManager

protected org.apache.ojb.broker.util.sequence.SequenceManager getConfiguredSequenceManager()

getSequenceManagerConfigProperties

protected Properties getSequenceManagerConfigProperties(String propertyPrefix)

afterStore

public void afterStore(org.apache.ojb.broker.accesslayer.JdbcAccess jdbcAccess,
                       org.apache.ojb.broker.metadata.ClassDescriptor classDescriptor,
                       Object object)
                throws org.apache.ojb.broker.util.sequence.SequenceManagerException
Specified by:
afterStore in interface org.apache.ojb.broker.util.sequence.SequenceManager
Throws:
org.apache.ojb.broker.util.sequence.SequenceManagerException

getUniqueValue

public Object getUniqueValue(org.apache.ojb.broker.metadata.FieldDescriptor fieldDescriptor)
                      throws org.apache.ojb.broker.util.sequence.SequenceManagerException
Specified by:
getUniqueValue in interface org.apache.ojb.broker.util.sequence.SequenceManager
Throws:
org.apache.ojb.broker.util.sequence.SequenceManagerException

getBroker

public org.apache.ojb.broker.PersistenceBroker getBroker()

getPropertyPrefix

public String getPropertyPrefix()


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.