examples.dbo
Class mollytest

java.lang.Object
  extended by fc.jdbc.dbo.DBO
      extended by examples.dbo.mollytest

public class mollytest
extends fc.jdbc.dbo.DBO

Represents a row in the mollytest table.


Constructor Summary
mollytest()
           
 
Method Summary
 Date get_created_on()
          date (DATE); Nullable=true; AutoInc=false; MaxSize=13
 String get_email()
          varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99
 boolean get_is_active()
          bool (BIT); Nullable=true; AutoInc=false; MaxSize=1
 String get_name()
          varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99
 String get_password()
          varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99
 int get_uid()
          serial (INTEGER); PK=yes; Nullable=false; AutoInc=true; MaxSize=10
 Object getExtraData(Object key)
          Allows retrieving arbitrary object-specific data from this object.
 boolean isModified_created_on()
          returns true if created_on has changed since it was created/loaded, false otherwise
 boolean isModified_email()
          returns true if email has changed since it was created/loaded, false otherwise
 boolean isModified_is_active()
          returns true if is_active has changed since it was created/loaded, false otherwise
 boolean isModified_name()
          returns true if name has changed since it was created/loaded, false otherwise
 boolean isModified_password()
          returns true if password has changed since it was created/loaded, false otherwise
 boolean isModified_uid()
          returns true if uid has changed since it was created/loaded, false otherwise
 boolean isModified()
          returns true if this object's data (for any field) has changed since it was created/loaded, false otherwise
 boolean isNew()
          returns true if this object is newly created and has not been loaded from the database, false otherwise
 boolean isNullInDB_created_on()
          returns true if created_on is null in the database
 boolean isNullInDB_email()
          returns true if email is null in the database
 boolean isNullInDB_is_active()
          returns true if is_active is null in the database
 boolean isNullInDB_name()
          returns true if name is null in the database
 boolean isNullInDB_password()
          returns true if password is null in the database
 boolean isNullInDB_uid()
          returns true if uid is null in the database
 void putExtraData(Object key, Object value)
          Allows putting arbitrary object-specific data into this object.
 mollytest set_created_on(Date created_on)
          date (DATE); Nullable=true; AutoInc=false; MaxSize=13
 mollytest set_email(String email)
          varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99
 mollytest set_is_active(boolean is_active)
          bool (BIT); Nullable=true; AutoInc=false; MaxSize=1
 mollytest set_name(String name)
          varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99
 mollytest set_password(String password)
          varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99
 String toString()
           
 
Methods inherited from class fc.jdbc.dbo.DBO
discard, isDiscarded
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

mollytest

public mollytest()
Method Detail

isModified_uid

public boolean isModified_uid()
returns true if uid has changed since it was created/loaded, false otherwise


isNullInDB_uid

public boolean isNullInDB_uid()
returns true if uid is null in the database


isModified_name

public boolean isModified_name()
returns true if name has changed since it was created/loaded, false otherwise


isNullInDB_name

public boolean isNullInDB_name()
returns true if name is null in the database


isModified_email

public boolean isModified_email()
returns true if email has changed since it was created/loaded, false otherwise


isNullInDB_email

public boolean isNullInDB_email()
returns true if email is null in the database


isModified_password

public boolean isModified_password()
returns true if password has changed since it was created/loaded, false otherwise


isNullInDB_password

public boolean isNullInDB_password()
returns true if password is null in the database


isModified_created_on

public boolean isModified_created_on()
returns true if created_on has changed since it was created/loaded, false otherwise


isNullInDB_created_on

public boolean isNullInDB_created_on()
returns true if created_on is null in the database


isModified_is_active

public boolean isModified_is_active()
returns true if is_active has changed since it was created/loaded, false otherwise


isNullInDB_is_active

public boolean isNullInDB_is_active()
returns true if is_active is null in the database


isNew

public boolean isNew()
returns true if this object is newly created and has not been loaded from the database, false otherwise


isModified

public boolean isModified()
returns true if this object's data (for any field) has changed since it was created/loaded, false otherwise


putExtraData

public void putExtraData(Object key,
                         Object value)
Allows putting arbitrary object-specific data into this object. This is useful to store additional query-specific columns when performing arbitrary queries. For example:
String query = "select 1+1 as my_sum, 
                now() as my_time, mollytestMgr.columns() 
                from mollytest";
PreparedStatement ps = con.prepareStatment(query);
ResultSet rs = ps.executeQuery();
List list = new ArrayList();
while (rs.next()) {
        mollytest obj = mollytestMgr.getFromRS(rs);
        obj.putExtraData("my_sum", rs.getInt("my_sum"));
        obj.putExtraData("my_time", rs.getDate("my_time"));
        }
//use the list later on...each mollytest object in the list will 
//have the extra data..


getExtraData

public Object getExtraData(Object key)
Allows retrieving arbitrary object-specific data from this object. This data should have been put via the putExtraData method prior to invoking this method


toString

public String toString()
Overrides:
toString in class Object

get_uid

public int get_uid()
serial (INTEGER); PK=yes; Nullable=false; AutoInc=true; MaxSize=10


get_name

public String get_name()
varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99


set_name

public mollytest set_name(String name)
varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99


get_email

public String get_email()
varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99


set_email

public mollytest set_email(String email)
varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99


get_password

public String get_password()
varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99


set_password

public mollytest set_password(String password)
varchar (VARCHAR); Nullable=true; AutoInc=false; MaxSize=99


get_created_on

public Date get_created_on()
date (DATE); Nullable=true; AutoInc=false; MaxSize=13


set_created_on

public mollytest set_created_on(Date created_on)
date (DATE); Nullable=true; AutoInc=false; MaxSize=13


get_is_active

public boolean get_is_active()
bool (BIT); Nullable=true; AutoInc=false; MaxSize=1


set_is_active

public mollytest set_is_active(boolean is_active)
bool (BIT); Nullable=true; AutoInc=false; MaxSize=1