|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfc.jdbc.dbo.DBO
examples.dbo.mollytest
public class mollytest
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 |
|---|
public mollytest()
| Method Detail |
|---|
public boolean isModified_uid()
public boolean isNullInDB_uid()
public boolean isModified_name()
public boolean isNullInDB_name()
public boolean isModified_email()
public boolean isNullInDB_email()
public boolean isModified_password()
public boolean isNullInDB_password()
public boolean isModified_created_on()
public boolean isNullInDB_created_on()
public boolean isModified_is_active()
public boolean isNullInDB_is_active()
public boolean isNew()
public boolean isModified()
public void putExtraData(Object key,
Object value)
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..
public Object getExtraData(Object key)
putExtraData
method prior to invoking this method
public String toString()
toString in class Objectpublic int get_uid()
public String get_name()
public mollytest set_name(String name)
public String get_email()
public mollytest set_email(String email)
public String get_password()
public mollytest set_password(String password)
public Date get_created_on()
public mollytest set_created_on(Date created_on)
public boolean get_is_active()
public mollytest set_is_active(boolean is_active)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||