com.arjava.torque
クラス BaseMenuTable

java.lang.Object
  拡張BaseObject
      拡張com.arjava.torque.BaseMenuTable
直系の既知のサブクラス:
MenuTable

public abstract class BaseMenuTable
extends BaseObject

This class was autogenerated by Torque on: [Wed Jan 07 03:08:36 JST 2004] You should not use this class directly. It should not even be extended all references should be to MenuTable

関連項目:
直列化された形式

コンストラクタの概要
BaseMenuTable()
           
 
メソッドの概要
 MenuTable copy()
          Makes a copy of this object.
protected  MenuTable copyInto(MenuTable copyObj)
           
 java.lang.Object getByName(java.lang.String name)
          Retrieves a field from the object by name passed in as a String.
 java.lang.Object getByPeerName(java.lang.String name)
          Retrieves a field from the object by name passed in as a String.
 java.lang.Object getByPosition(int pos)
          Retrieves a field from the object by Position as specified in the xml schema.
static java.util.List getFieldNames()
          Generate a list of field names.
 int getId()
          Get the Id
 java.lang.String getItem()
          Get the Item
 MenuTablePeer getPeer()
          returns a peer instance associated with this om.
 int getPrice()
          Get the Price
 ObjectKey getPrimaryKey()
          returns an id that differentiates this object from others of its class.
 java.lang.String getTerm()
          Get the Term
 void save()
          Stores the object in the database.
 void save(java.sql.Connection con)
          Stores the object in the database.
 void save(java.lang.String dbName)
          Stores the object in the database.
 void setId(int v)
          Set the value of Id
 void setItem(java.lang.String v)
          Set the value of Item
 void setPrice(int v)
          Set the value of Price
 void setPrimaryKey(ObjectKey key)
          Set the PrimaryKey using ObjectKey.
 void setTerm(java.lang.String v)
          Set the value of Term
 java.lang.String toString()
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

BaseMenuTable

public BaseMenuTable()
メソッドの詳細

getId

public int getId()
Get the Id

戻り値:
int

setId

public void setId(int v)
Set the value of Id

パラメータ:
v - new value

getItem

public java.lang.String getItem()
Get the Item

戻り値:
String

setItem

public void setItem(java.lang.String v)
Set the value of Item

パラメータ:
v - new value

getPrice

public int getPrice()
Get the Price

戻り値:
int

setPrice

public void setPrice(int v)
Set the value of Price

パラメータ:
v - new value

getTerm

public java.lang.String getTerm()
Get the Term

戻り値:
String

setTerm

public void setTerm(java.lang.String v)
Set the value of Term

パラメータ:
v - new value

getFieldNames

public static java.util.List getFieldNames()
Generate a list of field names.

戻り値:
a list of field names

getByName

public java.lang.Object getByName(java.lang.String name)
Retrieves a field from the object by name passed in as a String.

パラメータ:
name - field name
戻り値:
value

getByPeerName

public java.lang.Object getByPeerName(java.lang.String name)
Retrieves a field from the object by name passed in as a String. The String must be one of the static Strings defined in this Class' Peer.

パラメータ:
name - peer name
戻り値:
value

getByPosition

public java.lang.Object getByPosition(int pos)
Retrieves a field from the object by Position as specified in the xml schema. Zero-based.

パラメータ:
pos - position in xml schema
戻り値:
value

save

public void save()
          throws java.lang.Exception
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.

例外:
java.lang.Exception

save

public void save(java.lang.String dbName)
          throws TorqueException
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed. Note: this code is here because the method body is auto-generated conditionally and therefore needs to be in this file instead of in the super class, BaseObject.

パラメータ:
dbName -
例外:
TorqueException

save

public void save(java.sql.Connection con)
          throws TorqueException
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed. This method is meant to be used as part of a transaction, otherwise use the save() method and the connection details will be handled internally

パラメータ:
con -
例外:
TorqueException

setPrimaryKey

public void setPrimaryKey(ObjectKey key)
Set the PrimaryKey using ObjectKey.


getPrimaryKey

public ObjectKey getPrimaryKey()
returns an id that differentiates this object from others of its class.


copy

public MenuTable copy()
               throws TorqueException
Makes a copy of this object. It creates a new object filling in the simple attributes. It then fills all the association collections and sets the related objects to isNew=true.

例外:
TorqueException

copyInto

protected MenuTable copyInto(MenuTable copyObj)
                      throws TorqueException
例外:
TorqueException

getPeer

public MenuTablePeer getPeer()
returns a peer instance associated with this om. Since Peer classes are not to have any instance attributes, this method returns the same instance for all member of this class. The method could therefore be static, but this would prevent one from overriding the behavior.


toString

public java.lang.String toString()