|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.common.BaseObject | +--oracle.jbo.common.PropertiesHelper | +--oracle.jbo.common.AttributeDefHelper
Internal: Applications should not use this class.
Fields inherited from class oracle.jbo.common.PropertiesHelper |
mProperties,
timer |
Fields inherited from class oracle.jbo.common.BaseObject |
TRACE_EVERY_ALLOC,
TRACE_NONE,
TRACE_OCCASIONAL,
TRACE_UNINITIALIZED |
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 | |
protected |
AttributeDefHelper()
|
protected |
AttributeDefHelper(java.lang.String nm,
java.lang.String cnm,
java.lang.String cnmForQuery,
int idx,
java.lang.Class cls,
int sqlType,
byte kind,
boolean isQueriable,
byte updateable,
boolean primarykey,
boolean mandatory,
int precision,
int scale)
|
protected |
AttributeDefHelper(java.lang.String nm,
java.lang.String cnm,
java.lang.String cnmForQuery,
int idx,
java.lang.String typ,
int sqlType,
byte kind,
boolean isQueriable,
byte updateable,
boolean primarykey,
boolean mandatory,
int precision,
int scale)
|
Method Summary | |
byte |
getAttributeKind()
Gets the attribute value. |
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 |
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. |
int |
getScale()
Get the scale value of a numeric attribute. |
int |
getSQLType()
Gets the JDBC type of the attribute. |
byte |
getUpdateableFlag()
Tests if an attribute can be modified. |
boolean |
isMandatory()
Return true if this attribute does not allow null values. |
boolean |
isPrimaryKey()
Tests if an attribute is a Primary Key. |
boolean |
isQueriable()
Tests if an attribute is queriable. |
Methods inherited from class oracle.jbo.common.PropertiesHelper |
getProperties,
getProperty,
refreshProperty,
setProperty |
Methods inherited from class oracle.jbo.common.BaseObject |
dumpState,
setTraceLevel,
setTraceWriter |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected AttributeDefHelper()
protected AttributeDefHelper(java.lang.String nm, java.lang.String cnm, java.lang.String cnmForQuery, int idx, java.lang.String typ, int sqlType, byte kind, boolean isQueriable, byte updateable, boolean primarykey, boolean mandatory, int precision, int scale) throws java.lang.ClassNotFoundException
protected AttributeDefHelper(java.lang.String nm, java.lang.String cnm, java.lang.String cnmForQuery, int idx, java.lang.Class cls, int sqlType, byte kind, boolean isQueriable, byte updateable, boolean primarykey, boolean mandatory, int precision, int scale)
Method Detail |
public java.lang.String getName()
public java.lang.String getColumnName()
public java.lang.String getColumnNameForQuery()
public int getIndex()
StoreInfo
instance.public java.lang.Class getJavaType()
public int getSQLType()
Types
public byte getAttributeKind()
ATTR
constants defined for this class.public 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.
true
if this attribute is queriable.public byte getUpdateableFlag()
READONLY
, UPDATEABLE
, or UPDATEABLE_WHILE_NEW
.public boolean isPrimaryKey()
true
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()
true
if this attribute cannot store a null valuepublic int getPrecision()
'Precision' for a string is the maximum length.
public int getScale()
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |