de.mguennewig.pobjects.demo
Class PClassCurrency

java.lang.Object
  extended by de.mguennewig.pobjects.Record
      extended by de.mguennewig.pobjects.PObject
          extended by de.mguennewig.pobjects.demo.PClassCurrency
Direct Known Subclasses:
Currency

public abstract class PClassCurrency
extends PObject

PObject glue class for Currency.

This class is generated automatically. Look in data-definition- file for more details.


Field Summary
static IdField attrId
          Contains the definition for id.
static Field attrLongName
          Contains the definition for longName.
static Field attrShortName
          Contains the definition for shortName.
static Int32Type atypeId
          Contains the type definition for id.
static StringType atypeLongName
          Contains the type definition for longName.
static StringType atypeShortName
          Contains the type definition for shortName.
static ClassDecl cdeclCurrency
          Contains the metadata used to create this class.
static UniqueConstraint uniqueCurrencyLongName
           
static UniqueConstraint uniqueCurrencyShortName
           
 
Fields inherited from class de.mguennewig.pobjects.PObject
CHECK_ALL_FIELDS, CHECK_CHANGED_ONLY, CHECK_NOTHING, STATE_COMMITED, STATE_DELETE, STATE_DIRTY, STATE_INTERNALIZED, STATE_INVALID, STATE_NEW_OBJECT, STATE_REFERENCE, STATE_TRANSIENT
 
Method Summary
 java.lang.Object get(int i)
          Returns the value of the column with index i.
 ClassDecl getClassDecl()
          Returns the metadata used to create this class.
 java.lang.String getLongName()
          Returns the value of longName.
 java.lang.String getLongNameForVisual()
          Returns the preferred string representation of longName.
 java.lang.String getShortName()
          Returns the value of shortName.
 java.lang.String getShortNameForVisual()
          Returns the preferred string representation of shortName.
 void set(int i, java.lang.Object value)
          Set value of field with index index.
 void setLongName(java.lang.String v)
          Sets the value for longName.
 void setShortName(java.lang.String v)
          Sets the value for shortName.
 
Methods inherited from class de.mguennewig.pobjects.PObject
checkConstraints, checkConstraints, copyState, delete, getChangedValues, getContainer, getDefaultFieldCheckStyle, getId, getIdForVisual, getKey, getKey, getOldValues, getPObjState, getTableExpr, isInstanceOf, isInternalized, isPersistent, isReference, loadForUpdate, loadIfReference, revert, set, setDefaultFieldCheckStyle, store, store, toString
 
Methods inherited from class de.mguennewig.pobjects.Record
format, get
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

atypeId

public static final Int32Type atypeId
Contains the type definition for id.


attrId

public static final IdField attrId
Contains the definition for id.

See Also:
atypeId

atypeShortName

public static final StringType atypeShortName
Contains the type definition for shortName.


attrShortName

public static final Field attrShortName
Contains the definition for shortName.

See Also:
atypeShortName

atypeLongName

public static final StringType atypeLongName
Contains the type definition for longName.


attrLongName

public static final Field attrLongName
Contains the definition for longName.

See Also:
atypeLongName

uniqueCurrencyShortName

public static final UniqueConstraint uniqueCurrencyShortName

uniqueCurrencyLongName

public static final UniqueConstraint uniqueCurrencyLongName

cdeclCurrency

public static final ClassDecl cdeclCurrency
Contains the metadata used to create this class.

Method Detail

getClassDecl

public ClassDecl getClassDecl()
Returns the metadata used to create this class.

Specified by:
getClassDecl in class PObject

getShortName

public final java.lang.String getShortName()
Returns the value of shortName.

This method ensures that all data will be read from the DBMS if not already done.

Throws:
PObjReadError - if a database error occurs.

getShortNameForVisual

public java.lang.String getShortNameForVisual()
Returns the preferred string representation of shortName.

Throws:
PObjReadError - if a database error occurs.
See Also:
getShortName()

setShortName

public void setShortName(java.lang.String v)
Sets the value for shortName.

This method ensures that all data will be read from the DBMS if not already done, before changing the field.

Throws:
PObjReadError - if a database error occurs.

getLongName

public final java.lang.String getLongName()
Returns the value of longName.

This method ensures that all data will be read from the DBMS if not already done.

Throws:
PObjReadError - if a database error occurs.

getLongNameForVisual

public java.lang.String getLongNameForVisual()
Returns the preferred string representation of longName.

Throws:
PObjReadError - if a database error occurs.
See Also:
getLongName()

setLongName

public void setLongName(java.lang.String v)
Sets the value for longName.

This method ensures that all data will be read from the DBMS if not already done, before changing the field.

Throws:
PObjReadError - if a database error occurs.

get

public java.lang.Object get(int i)
Returns the value of the column with index i.

Specified by:
get in class Record
Throws:
java.lang.IndexOutOfBoundsException - if no column with index i exists.

set

public void set(int i,
                java.lang.Object value)
Description copied from class: Record
Set value of field with index index.

This method is primarily intended for use by procedures that work on meta level of de.mguennewig.pobjects. It differs from the per field setXXX() methods in that it does not load the object's data if it is not in memory. If unsure whether the object's state has been internalized, then any call to this method must be preceded by a call to PObject.loadIfReference().

Specified by:
set in class Record