|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.broker.metadata.SequenceDescriptor
public class SequenceDescriptor
Encapsulates sequence manager configuration properties managed by
JdbcConnectionDescriptor
.
All sequence manager implementation specific configuration
attributes are represented by key/value pairs in a
Properties
object and could be reached via
getConfigurationProperties()
or getAttribute(String key)
.
Field Summary |
---|
Constructor Summary | |
---|---|
SequenceDescriptor(JdbcConnectionDescriptor jcd)
|
|
SequenceDescriptor(JdbcConnectionDescriptor jcd,
Class sequenceManagerClass)
|
Method Summary | |
---|---|
void |
addAttribute(String attributeName,
String attributeValue)
Store the specified attribute and it's value. |
String |
getAttribute(String key)
Get the value of an attribute |
String |
getAttribute(String attributeName,
String defaultValue)
Get the value of an attribute |
Properties |
getConfigurationProperties()
|
JdbcConnectionDescriptor |
getJdbcConnectionDescriptor()
|
Class |
getSequenceManagerClass()
|
void |
setConfigurationProperties(Properties configurationProperties)
|
void |
setJdbcConnectionDescriptor(JdbcConnectionDescriptor jcd)
|
void |
setSequenceManagerClass(Class sequenceManagerClass)
|
String |
toString()
|
String |
toXML()
returns the XML marshalled version of this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SequenceDescriptor(JdbcConnectionDescriptor jcd)
public SequenceDescriptor(JdbcConnectionDescriptor jcd, Class sequenceManagerClass)
Method Detail |
---|
public JdbcConnectionDescriptor getJdbcConnectionDescriptor()
public void setJdbcConnectionDescriptor(JdbcConnectionDescriptor jcd)
public Class getSequenceManagerClass()
public void setSequenceManagerClass(Class sequenceManagerClass)
public void addAttribute(String attributeName, String attributeValue)
AttributeContainer
addAttribute
in interface AttributeContainer
attributeName
- the name of the attribute to retrieveattributeValue
- the attribute's valuepublic String getAttribute(String key)
AttributeContainer
getAttribute
in interface AttributeContainer
key
- the attribute to retrieve
public String getAttribute(String attributeName, String defaultValue)
AttributeContainer
getAttribute
in interface AttributeContainer
attributeName
- the attribute to retrievedefaultValue
- the value to return if the attribute is not present
public Properties getConfigurationProperties()
public void setConfigurationProperties(Properties configurationProperties)
public String toString()
toString
in class Object
public String toXML()
XmlCapable
toXML
in interface XmlCapable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |