de.mathema.pride
Class Attribute
java.lang.Object
de.mathema.pride.DatabaseAdapter
de.mathema.pride.ObjectAdapter
de.mathema.pride.MappedObject
de.mathema.pride.Attribute
public class Attribute
- extends MappedObject
Entity class to access the table of generic attributes
- Author:
- Jan Lessner
Constructor Summary |
Attribute(java.lang.String objectType,
java.lang.String object,
java.lang.String attr)
|
Attribute(java.lang.String objectType,
java.lang.String object,
java.lang.String attr,
java.lang.String value)
|
Methods inherited from class de.mathema.pride.ObjectAdapter |
commit, constraint, constraint, constraint, create, create, createx, delete, delete, fetch, fetchx, fetchx, fetchx, find, find, find, getAutoFields, getDatabase, getDatabase, getXDescriptor, process, query, query, queryAll, update, update, update, update, update, updatex, updatex, updatex, wildcard |
Methods inherited from class de.mathema.pride.DatabaseAdapter |
commit, constraint, create, create, create, delete, delete, fetch, fetch, fetch, fetch, find, find, find, process, query, query, queryAll, update, update, update, update, update, update, update, update, wildcard |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
red
protected static RecordDescriptor red
REVISION_ID
public static final java.lang.String REVISION_ID
- See Also:
- Constant Field Values
Attribute
public Attribute(java.lang.String objectType,
java.lang.String object,
java.lang.String attr)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Attribute
public Attribute(java.lang.String objectType,
java.lang.String object,
java.lang.String attr,
java.lang.String value)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getKeyFields
public java.lang.String[] getKeyFields()
- Description copied from class:
ObjectAdapter
- Returns the primary key fields for this entity. This function
returns
null
by default causing the update()
and delete()
functions below to use the first field in
the record descriptor as primary key.
- Overrides:
getKeyFields
in class ObjectAdapter
getDescriptor
protected RecordDescriptor getDescriptor()
- Description copied from class:
ObjectAdapter
- Returns the entity's record desriptor. This function is used by the
the public database access functions below to provide simplified
standard functionality. This function is abstract and must therefore
be provided by every derived type.
- Specified by:
getDescriptor
in class ObjectAdapter
getObjectType
public java.lang.String getObjectType()
getObject
public java.lang.String getObject()
getName
public java.lang.String getName()
getSeqNo
public int getSeqNo()
getValue
public java.lang.String getValue()
setObjectType
public void setObjectType(java.lang.String val)
setObject
public void setObject(java.lang.String val)
setName
public void setName(java.lang.String val)
setSeqNo
public void setSeqNo(int val)
setValue
public void setValue(java.lang.String val)