|
Business Components | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.jbo.domain.DomainAttributeDef
| Fields inherited from interface oracle.jbo.AttributeDef |
ATTR_ASSOCIATED_ROW, ATTR_ASSOCIATED_ROWITERATOR, ATTR_DYNAMIC,
ATTR_ENTITY_DERIVED, ATTR_PERSISTENT, ATTR_SQL_DERIVED,
ATTR_TRANSIENT, READONLY, UPDATEABLE, UPDATEABLE_WHILE_NEW |
| Constructor Summary |
DomainAttributeDef(java.lang.String name,
java.lang.String columnName,
int index,
java.lang.Class javaType,
int sqlType,
java.lang.String sqlTypeName,
int scale,
int precision,
boolean isMandatory)
|
DomainAttributeDef(java.lang.String name,
java.lang.String columnName,
int index,
java.lang.Class javaType,
int sqlType,
java.lang.String sqlTypeName,
int scale,
int precision,
boolean isMandatory,
java.lang.String entityDefName)
|
| Method Summary |
| Type | Method |
|---|---|
byte |
getAttributeKind()
Gets the attribute kind. |
java.lang.String |
getColumnName()
Gets the name of the database column the attribute represents. |
java.lang.String |
getColumnNameForQuery()
Gets the column name to be used in query statement. |
int |
getElemSQLType()
Return -1; |
java.lang.Class |
getElemType()
Return null; |
int |
getIndex()
Gets the index of the attribute in the context of a StoreInfo
instance. |
java.lang.Class |
getJavaType()
Gets the Java class of the object stored for this attribute definition. |
java.lang.String |
getName()
Gets the name of the attribute. |
int |
getPrecision()
Gets the precision of a numeric or string attribute. |
java.util.Hashtable |
getProperties()
Gets the table of properties. |
java.lang.Object |
getProperty(java.lang.String hintName)
Retrieves the specified property, if it exists. |
java.lang.String |
getReferencedObjectDefName()
|
int |
getScale()
Get the scale value of a numeric attribute. |
int |
getSQLType()
Gets the JDBC type of the attribute. |
AttributeHints |
getUIHelper()
when property support gets added to domains, this function will return a valid ui hint implementation. |
byte |
getUpdateableFlag()
Tests if an attribute can be modified. |
static Node |
getXMLContentNode(Document xmlDoc,
java.lang.Object attrValue,
boolean isCData)
|
boolean |
isMandatory()
Tests if an attribute does not allow null values. |
boolean |
isPrimaryKey()
Tests if an attribute is a Primary Key. |
boolean |
isQueriable()
Tests if an attribute is queriable. |
static java.lang.String |
printAttrXMLDefinition(AttributeList row,
java.lang.String attrTag,
AttributeDef ad,
java.util.Hashtable allDefs,
java.io.PrintWriter pw,
boolean bContainees)
|
java.lang.Object |
refreshProperty(java.lang.String hintName)
Retrieves the specified property, if it exists. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DomainAttributeDef(java.lang.String name,
java.lang.String columnName,
int index,
java.lang.Class javaType,
int sqlType,
java.lang.String sqlTypeName,
int scale,
int precision,
boolean isMandatory)
public DomainAttributeDef(java.lang.String name,
java.lang.String columnName,
int index,
java.lang.Class javaType,
int sqlType,
java.lang.String sqlTypeName,
int scale,
int precision,
boolean isMandatory,
java.lang.String entityDefName)
| Method Detail |
public byte getAttributeKind()
getAttributeKind in interface AttributeDefATTR constants defined for this class.public java.lang.String getName()
getName in interface AttributeDefpublic java.lang.String getColumnName()
getColumnName in interface AttributeDefpublic java.lang.String getColumnNameForQuery()
AttributeDefgetColumnNameForQuery in interface AttributeDeforacle.jbo.AttributeDefpublic int getIndex()
StoreInfo
instance.getIndex in interface AttributeDefpublic java.lang.Class getJavaType()
getJavaType in interface AttributeDefpublic int getSQLType()
getSQLType in interface AttributeDefTypespublic int getScale()
getScale in interface AttributeDefpublic int getPrecision()
'Precision' for a string is the maximum length.
getPrecision in interface AttributeDefpublic boolean isQueriable()
Queriable attributes are those that may have a filter condition for the WHERE clause If this method returns false, the attribute will not be used in constructing the WHERE clause of SQL statements to fetch data.
isQueriable in interface AttributeDeftrue if this attribute is queriable.public byte getUpdateableFlag()
getUpdateableFlag in interface AttributeDefREADONLY, UPDATEABLE, or UPDATEABLE_WHILE_NEW.public boolean isPrimaryKey()
isPrimaryKey in interface AttributeDeftrue if this is either a Primary Key attribute or
part of the attributes that constitute the Primary Key for a given row.public boolean isMandatory()
isMandatory in interface AttributeDeftrue if this attribute cannot store a null valuepublic java.lang.Object getProperty(java.lang.String hintName)
getProperty in interface Propertiespublic java.lang.Object refreshProperty(java.lang.String hintName)
PropertiesgetProperty.refreshProperty in interface Propertiesoracle.jbo.PropertieshintName - Property name.null.public java.lang.String getReferencedObjectDefName()
public java.util.Hashtable getProperties()
getProperties in interface Properties
public static Node getXMLContentNode(Document xmlDoc,
java.lang.Object attrValue,
boolean isCData)
public static java.lang.String printAttrXMLDefinition(AttributeList row,
java.lang.String attrTag,
AttributeDef ad,
java.util.Hashtable allDefs,
java.io.PrintWriter pw,
boolean bContainees)
public AttributeHints getUIHelper()
getUIHelper in interface AttributeDeforacle.jbo.AttributeDefAttributeHintspublic java.lang.Class getElemType()
getElemType in interface AttributeDeforacle.jbo.AttributeDefpublic int getElemSQLType()
getElemSQLType in interface AttributeDeforacle.jbo.AttributeDef
|
Business Components | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||