org.kuali.rice.core.ojb
Class ConfigurableSequenceManager

java.lang.Object
  extended by org.kuali.rice.core.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)

Field Summary
private  org.apache.ojb.broker.PersistenceBroker broker
           
private static String DEFAULT_PROPERTY_PREFIX
           
private static String DEFAULT_SEQUENCE_MANAGER_CLASSNAME
           
private static String PROPERTY_PREFIX_ATTRIBUTE
           
private  org.apache.ojb.broker.util.sequence.SequenceManager sequenceManager
           
 
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
 

Field Detail

PROPERTY_PREFIX_ATTRIBUTE

private static final String PROPERTY_PREFIX_ATTRIBUTE
See Also:
Constant Field Values

DEFAULT_PROPERTY_PREFIX

private static final String DEFAULT_PROPERTY_PREFIX
See Also:
Constant Field Values

DEFAULT_SEQUENCE_MANAGER_CLASSNAME

private static final String DEFAULT_SEQUENCE_MANAGER_CLASSNAME

broker

private org.apache.ojb.broker.PersistenceBroker broker

sequenceManager

private org.apache.ojb.broker.util.sequence.SequenceManager sequenceManager
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 © 2004-2011 The Kuali Foundation. All Rights Reserved.