de.mathema.pride
Class Attribute

java.lang.Object
  extended by de.mathema.pride.DatabaseAdapter
      extended by de.mathema.pride.ObjectAdapter
          extended by de.mathema.pride.MappedObject
              extended by de.mathema.pride.Attribute

public class Attribute
extends MappedObject

Entity class to access the table of generic attributes

Author:
Jan Lessner

Field Summary
protected static RecordDescriptor red
           
static java.lang.String REVISION_ID
           
 
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)
           
 
Method Summary
protected  RecordDescriptor getDescriptor()
          Returns the entity's record desriptor.
 java.lang.String[] getKeyFields()
          Returns the primary key fields for this entity.
 java.lang.String getName()
           
 java.lang.String getObject()
           
 java.lang.String getObjectType()
           
 int getSeqNo()
           
 java.lang.String getValue()
           
 void setName(java.lang.String val)
           
 void setObject(java.lang.String val)
           
 void setObjectType(java.lang.String val)
           
 void setSeqNo(int val)
           
 void setValue(java.lang.String val)
           
 
Methods inherited from class de.mathema.pride.MappedObject
getEntity
 
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
 

Field Detail

red

protected static RecordDescriptor red

REVISION_ID

public static final java.lang.String REVISION_ID
See Also:
Constant Field Values
Constructor Detail

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
Method Detail

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)