de.mguennewig.pobjects.demo
Class PClassTransaction

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

public abstract class PClassTransaction
extends PObject

PObject glue class for Transaction.

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


Field Summary
static Field attrBrokerCommission
          Contains the definition for brokerCommission.
static Field attrCommission
          Contains the definition for commission.
static Field attrCurrency
          Contains the definition for currency.
static Field attrExchange
          Contains the definition for exchange.
static IdField attrId
          Contains the definition for id.
static Field attrOtherExpenses
          Contains the definition for otherExpenses.
static Field attrPrice
          Contains the definition for price.
static Field attrShares
          Contains the definition for shares.
static Field attrStock
          Contains the definition for stock.
static Field attrTransactionDate
          Contains the definition for transactionDate.
static NumericType atypeBrokerCommission
          Contains the type definition for brokerCommission.
static NumericType atypeCommission
          Contains the type definition for commission.
static RefType atypeCurrency
          Contains the type definition for currency.
static RefType atypeExchange
          Contains the type definition for exchange.
static Int32Type atypeId
          Contains the type definition for id.
static NumericType atypeOtherExpenses
          Contains the type definition for otherExpenses.
static NumericType atypePrice
          Contains the type definition for price.
static Int32Type atypeShares
          Contains the type definition for shares.
static RefType atypeStock
          Contains the type definition for stock.
static StringType atypeTransactionDate
          Contains the type definition for transactionDate.
static ClassDecl cdeclTransaction
          Contains the metadata used to create this class.
 
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.
 java.math.BigDecimal getBrokerCommission()
          Returns the value of brokerCommission.
 java.lang.String getBrokerCommissionForVisual()
          Returns the preferred string representation of brokerCommission.
 ClassDecl getClassDecl()
          Returns the metadata used to create this class.
 java.math.BigDecimal getCommission()
          Returns the value of commission.
 java.lang.String getCommissionForVisual()
          Returns the preferred string representation of commission.
 Currency getCurrency()
          Returns the value of currency.
 java.lang.String getCurrencyForVisual()
          Returns the preferred string representation of currency.
 StockExchange getExchange()
          Returns the value of exchange.
 java.lang.String getExchangeForVisual()
          Returns the preferred string representation of exchange.
 java.math.BigDecimal getOtherExpenses()
          Returns the value of otherExpenses.
 java.lang.String getOtherExpensesForVisual()
          Returns the preferred string representation of otherExpenses.
 java.math.BigDecimal getPrice()
          Returns the value of price.
 java.lang.String getPriceForVisual()
          Returns the preferred string representation of price.
 java.lang.Integer getShares()
          Returns the value of shares.
 java.lang.String getSharesForVisual()
          Returns the preferred string representation of shares.
 Stock getStock()
          Returns the value of stock.
 java.lang.String getStockForVisual()
          Returns the preferred string representation of stock.
 java.lang.String getTransactionDate()
          Returns the value of transactionDate.
 java.lang.String getTransactionDateForVisual()
          Returns the preferred string representation of transactionDate.
 void set(int i, java.lang.Object value)
          Set value of field with index index.
 void setBrokerCommission(java.math.BigDecimal v)
          Sets the value for brokerCommission.
 void setCommission(java.math.BigDecimal v)
          Sets the value for commission.
 void setCurrency(Currency v)
          Sets the value for currency.
 void setExchange(StockExchange v)
          Sets the value for exchange.
 void setOtherExpenses(java.math.BigDecimal v)
          Sets the value for otherExpenses.
 void setPrice(java.math.BigDecimal v)
          Sets the value for price.
 void setShares(java.lang.Integer v)
          Sets the value for shares.
 void setStock(Stock v)
          Sets the value for stock.
 void setTransactionDate(java.lang.String v)
          Sets the value for transactionDate.
 
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

atypeTransactionDate

public static final StringType atypeTransactionDate
Contains the type definition for transactionDate.


attrTransactionDate

public static final Field attrTransactionDate
Contains the definition for transactionDate.

See Also:
atypeTransactionDate

atypeExchange

public static final RefType atypeExchange
Contains the type definition for exchange.


attrExchange

public static final Field attrExchange
Contains the definition for exchange.

See Also:
atypeExchange

atypeStock

public static final RefType atypeStock
Contains the type definition for stock.


attrStock

public static final Field attrStock
Contains the definition for stock.

See Also:
atypeStock

atypeCurrency

public static final RefType atypeCurrency
Contains the type definition for currency.


attrCurrency

public static final Field attrCurrency
Contains the definition for currency.

See Also:
atypeCurrency

atypePrice

public static final NumericType atypePrice
Contains the type definition for price.


attrPrice

public static final Field attrPrice
Contains the definition for price.

See Also:
atypePrice

atypeShares

public static final Int32Type atypeShares
Contains the type definition for shares.


attrShares

public static final Field attrShares
Contains the definition for shares.

See Also:
atypeShares

atypeCommission

public static final NumericType atypeCommission
Contains the type definition for commission.


attrCommission

public static final Field attrCommission
Contains the definition for commission.

See Also:
atypeCommission

atypeBrokerCommission

public static final NumericType atypeBrokerCommission
Contains the type definition for brokerCommission.


attrBrokerCommission

public static final Field attrBrokerCommission
Contains the definition for brokerCommission.

See Also:
atypeBrokerCommission

atypeOtherExpenses

public static final NumericType atypeOtherExpenses
Contains the type definition for otherExpenses.


attrOtherExpenses

public static final Field attrOtherExpenses
Contains the definition for otherExpenses.

See Also:
atypeOtherExpenses

cdeclTransaction

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

getTransactionDate

public final java.lang.String getTransactionDate()
Returns the value of transactionDate.

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

Throws:
PObjReadError - if a database error occurs.

getTransactionDateForVisual

public java.lang.String getTransactionDateForVisual()
Returns the preferred string representation of transactionDate.

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

setTransactionDate

public void setTransactionDate(java.lang.String v)
Sets the value for transactionDate.

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.

getExchange

public final StockExchange getExchange()
Returns the value of exchange.

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

Throws:
PObjReadError - if a database error occurs.

getExchangeForVisual

public java.lang.String getExchangeForVisual()
Returns the preferred string representation of exchange.

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

setExchange

public void setExchange(StockExchange v)
Sets the value for exchange.

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.

getStock

public final Stock getStock()
Returns the value of stock.

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

Throws:
PObjReadError - if a database error occurs.

getStockForVisual

public java.lang.String getStockForVisual()
Returns the preferred string representation of stock.

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

setStock

public void setStock(Stock v)
Sets the value for stock.

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.

getCurrency

public final Currency getCurrency()
Returns the value of currency.

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

Throws:
PObjReadError - if a database error occurs.

getCurrencyForVisual

public java.lang.String getCurrencyForVisual()
Returns the preferred string representation of currency.

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

setCurrency

public void setCurrency(Currency v)
Sets the value for currency.

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.

getPrice

public final java.math.BigDecimal getPrice()
Returns the value of price.

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

Throws:
PObjReadError - if a database error occurs.

getPriceForVisual

public java.lang.String getPriceForVisual()
Returns the preferred string representation of price.

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

setPrice

public void setPrice(java.math.BigDecimal v)
Sets the value for price.

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.

getShares

public final java.lang.Integer getShares()
Returns the value of shares.

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

Throws:
PObjReadError - if a database error occurs.

getSharesForVisual

public java.lang.String getSharesForVisual()
Returns the preferred string representation of shares.

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

setShares

public void setShares(java.lang.Integer v)
Sets the value for shares.

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.

getCommission

public final java.math.BigDecimal getCommission()
Returns the value of commission.

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

Throws:
PObjReadError - if a database error occurs.

getCommissionForVisual

public java.lang.String getCommissionForVisual()
Returns the preferred string representation of commission.

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

setCommission

public void setCommission(java.math.BigDecimal v)
Sets the value for commission.

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.

getBrokerCommission

public final java.math.BigDecimal getBrokerCommission()
Returns the value of brokerCommission.

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

Throws:
PObjReadError - if a database error occurs.

getBrokerCommissionForVisual

public java.lang.String getBrokerCommissionForVisual()
Returns the preferred string representation of brokerCommission.

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

setBrokerCommission

public void setBrokerCommission(java.math.BigDecimal v)
Sets the value for brokerCommission.

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.

getOtherExpenses

public final java.math.BigDecimal getOtherExpenses()
Returns the value of otherExpenses.

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

Throws:
PObjReadError - if a database error occurs.

getOtherExpensesForVisual

public java.lang.String getOtherExpensesForVisual()
Returns the preferred string representation of otherExpenses.

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

setOtherExpenses

public void setOtherExpenses(java.math.BigDecimal v)
Sets the value for otherExpenses.

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