de.mguennewig.pobjects.demo
Class PClassStock

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

public abstract class PClassStock
extends PObject

PObject glue class for Stock.

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 attrName
          Contains the definition for name.
static Field attrWkn
          Contains the definition for wkn.
static Int32Type atypeId
          Contains the type definition for id.
static StringType atypeName
          Contains the type definition for name.
static StringType atypeWkn
          Contains the type definition for wkn.
static ClassDecl cdeclStock
          Contains the metadata used to create this class.
static UniqueConstraint uniqueStockName
           
static UniqueConstraint uniqueStockWkn
           
 
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 getName()
          Returns the value of name.
 java.lang.String getNameForVisual()
          Returns the preferred string representation of name.
 java.lang.String getWkn()
          Returns the value of wkn.
 java.lang.String getWknForVisual()
          Returns the preferred string representation of wkn.
 void set(int i, java.lang.Object value)
          Set value of field with index index.
 void setName(java.lang.String v)
          Sets the value for name.
 void setWkn(java.lang.String v)
          Sets the value for wkn.
 
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

atypeName

public static final StringType atypeName
Contains the type definition for name.


attrName

public static final Field attrName
Contains the definition for name.

See Also:
atypeName

atypeWkn

public static final StringType atypeWkn
Contains the type definition for wkn.


attrWkn

public static final Field attrWkn
Contains the definition for wkn.

See Also:
atypeWkn

uniqueStockName

public static final UniqueConstraint uniqueStockName

uniqueStockWkn

public static final UniqueConstraint uniqueStockWkn

cdeclStock

public static final ClassDecl cdeclStock
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

getName

public final java.lang.String getName()
Returns the value of name.

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

Throws:
PObjReadError - if a database error occurs.

getNameForVisual

public java.lang.String getNameForVisual()
Returns the preferred string representation of name.

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

setName

public void setName(java.lang.String v)
Sets the value for name.

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.

getWkn

public final java.lang.String getWkn()
Returns the value of wkn.

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

Throws:
PObjReadError - if a database error occurs.

getWknForVisual

public java.lang.String getWknForVisual()
Returns the preferred string representation of wkn.

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

setWkn

public void setWkn(java.lang.String v)
Sets the value for wkn.

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