|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.metadata.AttributeDescriptorBase
org.apache.ojb.broker.metadata.ObjectReferenceDescriptor
org.apache.ojb.broker.metadata.SuperReferenceDescriptor
public class SuperReferenceDescriptor
This class handle inheritance as 1-1 association based on a anonymous field (no field in persistent object needed).
Nested Class Summary | |
---|---|
static class |
SuperReferenceDescriptor.SuperReferenceField
|
Field Summary | |
---|---|
static java.lang.String |
SUPER_FIELD_INTERNAL_NAME
|
static java.lang.String |
SUPER_FIELD_NAME
|
Fields inherited from class org.apache.ojb.broker.metadata.ObjectReferenceDescriptor |
---|
CASCADE_LINK, CASCADE_NONE, CASCADE_OBJECT |
Constructor Summary | |
---|---|
SuperReferenceDescriptor(ClassDescriptor descriptor)
|
Method Summary | |
---|---|
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 . |
Methods inherited from class org.apache.ojb.broker.metadata.ObjectReferenceDescriptor |
---|
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, toXML |
Methods inherited from class org.apache.ojb.broker.metadata.AttributeDescriptorBase |
---|
getAttributeName, getClassDescriptor, getPersistentField, setClassDescriptor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SUPER_FIELD_INTERNAL_NAME
public static final java.lang.String SUPER_FIELD_NAME
Constructor Detail |
---|
public SuperReferenceDescriptor(ClassDescriptor descriptor)
Method Detail |
---|
public boolean isSuperReferenceDescriptor()
ObjectReferenceDescriptor
true
if this descriptor was used to
describe a reference to a super class of an object.
isSuperReferenceDescriptor
in class ObjectReferenceDescriptor
false
for this instance.public void setItemClass(java.lang.Class c)
ObjectReferenceDescriptor
setItemClass
in class ObjectReferenceDescriptor
c
- the items class objectpublic void setPersistentField(java.lang.Class c, java.lang.String fieldname)
PersistentField
is
used internal - SuperReferenceDescriptor.SuperReferenceField
.
setPersistentField
in class AttributeDescriptorBase
public void setPersistentField(PersistentField pf)
PersistentField
is
used internal - SuperReferenceDescriptor.SuperReferenceField
.
setPersistentField
in class AttributeDescriptorBase
public void setLazy(boolean lazy)
ObjectReferenceDescriptor
setLazy
in class ObjectReferenceDescriptor
lazy
- The lazy to setpublic void setCascadeRetrieve(boolean b)
setCascadeRetrieve
in class ObjectReferenceDescriptor
public void setCascadingStore(int cascade)
setCascadingStore
in class ObjectReferenceDescriptor
public void setCascadingStore(java.lang.String value)
setCascadingStore
in class ObjectReferenceDescriptor
public void setCascadingDelete(int cascade)
setCascadingDelete
in class ObjectReferenceDescriptor
public void setCascadingDelete(java.lang.String value)
setCascadingDelete
in class ObjectReferenceDescriptor
public void setCascadeStore(boolean cascade)
setCascadeStore
in class ObjectReferenceDescriptor
public void setCascadeDelete(boolean cascade)
setCascadeDelete
in class ObjectReferenceDescriptor
public SuperReferenceDescriptor.SuperReferenceField getInheritanceField()
public boolean isJavaInheritance()
public void addAttribute(java.lang.String attributeName, java.lang.String attributeValue)
AttributeContainer
addAttribute
in interface AttributeContainer
attributeName
- 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)
AttributeContainer
getAttribute
in interface AttributeContainer
attributeName
- the attribute to retrievedefaultValue
- the value to return if the attribute is not present
AttributeContainer.getAttribute(String, String)
public java.lang.String getAttribute(java.lang.String attributeName)
AttributeContainer
getAttribute
in interface AttributeContainer
attributeName
- the attribute to retrieve
AttributeContainer.getAttribute(String)
public java.util.Map getAttributes()
public java.lang.String[] getAttributeNames()
null
)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |