public class SuperReferenceDescriptor extends ObjectReferenceDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
SuperReferenceDescriptor.SuperReferenceField |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUPER_FIELD_INTERNAL_NAME |
static java.lang.String |
SUPER_FIELD_NAME |
CASCADE_LINK, CASCADE_NONE, CASCADE_OBJECT_NEXT, ACCEPT_LOCKS, ACCESS, ATTRIBUTE, ATTRIBUTE_NAME, ATTRIBUTE_VALUE, AUTO_DELETE, AUTO_INCREMENT, AUTO_RETRIEVE, AUTO_UPDATE, BATCH_MODE, CASCADE_LINK_STR, CASCADE_NONE_STR, CASCADE_OBJECT_STR, CLASS_DESCRIPTOR, CLASS_EXTENT, CLASS_NAME, CLASS_PROXY, CLASS_REF, COLLECTION_CLASS, COLLECTION_DESCRIPTOR, COLUMN_NAME, CON_LOG_ABANDONED, CON_MAX_ACTIVE, CON_MAX_IDLE, CON_MAX_WAIT, CON_MIN_EVICTABLE_IDLE_TIME_MILLIS, CON_NUM_TESTS_PER_EVICTION_RUN, CON_REMOVE_ABANDONED, CON_REMOVE_ABANDONED_TIMEOUT, CON_TEST_ON_BORROW, CON_TEST_ON_RETURN, CON_TEST_WHILE_IDLE, CON_TIME_BETWEEN_EVICTION_RUNS_MILLIS, CON_WHEN_EXHAUSTED_ACTION, CONNECTION_FACTORY, CONNECTION_POOL, CONSTANT_ARGUMENT, DATASOURCE_NAME, DBMS_NAME, DEFAULT_CONNECTION, DELETE_PROCEDURE, DOCUMENTATION, DRIVER_NAME, EAGER_RELEASE, EXTENDS, FACTORY_CLASS, FACTORY_METHOD, FIELD_CONVERSION, FIELD_DESCRIPTOR, FIELD_ID_REF, FIELD_NAME, FIELD_REF, FK_POINTING_TO_ITEMS_CLASS, FK_POINTING_TO_THIS_CLASS, FOREIGN_KEY, ID, IGNORE_AUTOCOMMIT_EXCEPTION, INCLUDE_ALL_FIELDS, INCLUDE_PK_FIELDS_ONLY, INDEX_COLUMN, INDEX_DESCRIPTOR, INDEXED, INDIRECTION_TABLE, INITIALIZATION_METHOD, INSERT_PROCEDURE, INVERSE_FK, ISOLATION_LEVEL, ITEMS_CLASS, JCD_ALIAS, JDBC_CONNECTION_DESCRIPTOR, JDBC_LEVEL, JDBC_TYPE, LENGTH, LOCKING, MAPPING_REPOSITORY, NAME, NULLABLE, OBJECT_CACHE, ORDERBY, OTM_DEPENDENT, PRECISION, PRIMARY_KEY, PROXY_PREFETCHING_LIMIT, PROXY_REFERENCE, QUERY_CUSTOMIZER, REFERENCE_DESCRIPTOR, REFERENCED_CLASS, REFRESH, REPOSITORY_VERSION, RETURN, RETURN_FIELD_REF, ROW_READER, RUNTIME_ARGUMENT, SCALE, SCHEMA_NAME, SEQUENCE_MANAGER, SEQUENCE_MANAGER_CLASS, SEQUENCE_NAME, SORT, TABLE_NAME, TAG_ACCESS, TAG_ACCESS_ANONYMOUS, TAG_ACCESS_READONLY, TAG_ACCESS_READWRITE, TAG_SUPER, UNIQUE, UPDATE_LOCK, UPDATE_PROCEDURE, URL_DBALIAS, URL_PROTOCOL, URL_SUBPROTOCOL, USE_AUTOCOMMIT, USER_NAME, USER_PASSWD, VALIDATION_QUERY, VALUE| Constructor and Description |
|---|
SuperReferenceDescriptor(ClassDescriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Store the specified attribute and it's value.
|
java.lang.String |
getAttribute(java.lang.String attributeName)
Get the value of an attribute
|
java.lang.String |
getAttribute(java.lang.String attributeName,
java.lang.String defaultValue)
Get the value of an attribute
|
java.lang.String[] |
getAttributeNames()
Returns an array of the names of all atributes of this descriptor.
|
java.util.Map |
getAttributes()
Returns the attribute map (name, value) of this descriptor.
|
SuperReferenceDescriptor.SuperReferenceField |
getInheritanceField() |
boolean |
isJavaInheritance()
If this method returns true the inheritance described by this object
is a normal JAVA inheritance.
|
boolean |
isSuperReferenceDescriptor()
Returns
true if this descriptor was used to
describe a reference to a super class of an object. |
void |
setCascadeDelete(boolean cascade) |
void |
setCascadeRetrieve(boolean b) |
void |
setCascadeStore(boolean cascade) |
void |
setCascadingDelete(int cascade) |
void |
setCascadingDelete(java.lang.String value) |
void |
setCascadingStore(int cascade) |
void |
setCascadingStore(java.lang.String value) |
void |
setItemClass(java.lang.Class c)
sets the item class
|
void |
setLazy(boolean lazy)
Sets the lazy.
|
void |
setPersistentField(java.lang.Class c,
java.lang.String fieldname)
Noop, a specific
PersistentField is
used internal - SuperReferenceDescriptor.SuperReferenceField. |
void |
setPersistentField(PersistentField pf)
Noop, a specific
PersistentField is
used internal - SuperReferenceDescriptor.SuperReferenceField. |
addForeignKeyField, addForeignKeyField, getCascadeAsString, getCascadeDelete, getCascadeRetrieve, getCascadeStore, getCascadingDelete, getCascadingStore, getForeignKeyFieldDescriptors, getForeignKeyFields, getForeignKeyValues, getItemClass, getItemClassName, getItemProxyClass, getOtmDependent, getProxyPrefetchingLimit, hasConstraint, isLazy, isRefresh, setConstraint, setForeignKeyFields, setOtmDependent, setProxyPrefetchingLimit, setRefresh, toString, toXMLgetAttributeName, getClassDescriptor, getPersistentField, setClassDescriptorpublic static final java.lang.String SUPER_FIELD_INTERNAL_NAME
public static final java.lang.String SUPER_FIELD_NAME
public SuperReferenceDescriptor(ClassDescriptor descriptor)
public boolean isSuperReferenceDescriptor()
ObjectReferenceDescriptortrue if this descriptor was used to
describe a reference to a super class of an object.isSuperReferenceDescriptor in class ObjectReferenceDescriptorfalse for this instance.public void setItemClass(java.lang.Class c)
ObjectReferenceDescriptorsetItemClass in class ObjectReferenceDescriptorc - the items class objectpublic void setPersistentField(java.lang.Class c,
java.lang.String fieldname)
PersistentField is
used internal - SuperReferenceDescriptor.SuperReferenceField.setPersistentField in class AttributeDescriptorBasepublic void setPersistentField(PersistentField pf)
PersistentField is
used internal - SuperReferenceDescriptor.SuperReferenceField.setPersistentField in class AttributeDescriptorBasepublic void setLazy(boolean lazy)
ObjectReferenceDescriptorsetLazy in class ObjectReferenceDescriptorlazy - The lazy to setpublic void setCascadeRetrieve(boolean b)
setCascadeRetrieve in class ObjectReferenceDescriptorpublic void setCascadingStore(int cascade)
setCascadingStore in class ObjectReferenceDescriptorpublic void setCascadingStore(java.lang.String value)
setCascadingStore in class ObjectReferenceDescriptorpublic void setCascadingDelete(int cascade)
setCascadingDelete in class ObjectReferenceDescriptorpublic void setCascadingDelete(java.lang.String value)
setCascadingDelete in class ObjectReferenceDescriptorpublic void setCascadeStore(boolean cascade)
setCascadeStore in class ObjectReferenceDescriptorpublic void setCascadeDelete(boolean cascade)
setCascadeDelete in class ObjectReferenceDescriptorpublic SuperReferenceDescriptor.SuperReferenceField getInheritanceField()
public boolean isJavaInheritance()
public void addAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
AttributeContaineraddAttribute in interface AttributeContainerattributeName - the name of the attribute to retrieveattributeValue - the attribute's valueAttributeContainer.addAttribute(String, String)public java.lang.String getAttribute(java.lang.String attributeName,
java.lang.String defaultValue)
AttributeContainergetAttribute in interface AttributeContainerattributeName - the attribute to retrievedefaultValue - the value to return if the attribute is not presentAttributeContainer.getAttribute(String, String)public java.lang.String getAttribute(java.lang.String attributeName)
AttributeContainergetAttribute in interface AttributeContainerattributeName - the attribute to retrieveAttributeContainer.getAttribute(String)public java.util.Map getAttributes()
public java.lang.String[] getAttributeNames()
null)(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30