|
|||||||||
| Home >> All >> org >> objectstyle >> cayenne >> [ map overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.objectstyle.cayenne.map
Class ObjAttribute

java.lang.Objectorg.objectstyle.cayenne.map.MapObject
org.objectstyle.cayenne.map.Attribute
org.objectstyle.cayenne.map.ObjAttribute
- All Implemented Interfaces:
- org.objectstyle.cayenne.util.CayenneMapEntry
- public class ObjAttribute
- extends Attribute
An ObjAttribute is a mapping descriptor of a Java class property.
| Field Summary | |
protected java.lang.String |
attrType
|
private java.lang.String |
dbAttributePath
|
| Fields inherited from class org.objectstyle.cayenne.map.MapObject |
objName, objParent |
| Constructor Summary | |
ObjAttribute()
|
|
ObjAttribute(java.lang.String name)
|
|
ObjAttribute(java.lang.String name,
java.lang.String type,
ObjEntity entity)
|
|
| Method Summary | |
DbAttribute |
getDbAttribute()
Returns an attribute describing a mapped database table column. |
java.lang.String |
getDbAttributeName()
Returns the dbAttributeName. |
java.lang.String |
getDbAttributePath()
|
java.util.Iterator |
getDbPathIterator()
|
java.lang.String |
getType()
Gets the type of the data object property. |
boolean |
isCompound()
|
boolean |
mapsToDependentDbEntity()
|
void |
setDbAttribute(DbAttribute dbAttribute)
Set the corresponding database table column. |
void |
setDbAttributeName(java.lang.String dbAttributeName)
Sets the dbAttributeName. |
void |
setDbAttributePath(java.lang.String dbAttributePath)
|
void |
setType(java.lang.String type)
Sets the type of the data object property. |
void |
validate()
|
| Methods inherited from class org.objectstyle.cayenne.map.Attribute |
getEntity, setEntity |
| Methods inherited from class org.objectstyle.cayenne.map.MapObject |
getName, getParent, setName, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
attrType
protected java.lang.String attrType
dbAttributePath
private java.lang.String dbAttributePath
| Constructor Detail |
ObjAttribute
public ObjAttribute()
ObjAttribute
public ObjAttribute(java.lang.String name)
ObjAttribute
public ObjAttribute(java.lang.String name, java.lang.String type, ObjEntity entity)
| Method Detail |
getType
public java.lang.String getType()
- Gets the type of the data object property.
Type returned is a string that specifies full name of a Java class
used to represent this attribute.
setType
public void setType(java.lang.String type)
- Sets the type of the data object property.
getDbAttribute
public DbAttribute getDbAttribute()
- Returns an attribute describing a mapped database
table column.
getDbPathIterator
public java.util.Iterator getDbPathIterator()
setDbAttribute
public void setDbAttribute(DbAttribute dbAttribute)
- Set the corresponding database table column.
getDbAttributeName
public java.lang.String getDbAttributeName()
- Returns the dbAttributeName.
setDbAttributeName
public void setDbAttributeName(java.lang.String dbAttributeName)
- Sets the dbAttributeName.
setDbAttributePath
public void setDbAttributePath(java.lang.String dbAttributePath)
getDbAttributePath
public java.lang.String getDbAttributePath()
isCompound
public boolean isCompound()
mapsToDependentDbEntity
public boolean mapsToDependentDbEntity()
validate
public void validate()
throws org.objectstyle.cayenne.CayenneException
|
|||||||||
| Home >> All >> org >> objectstyle >> cayenne >> [ map overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC