|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRecord
Provides a generic data object which can be stored in a database.
Field Summary | |
---|---|
static Integer |
INVALID_ID
|
Method Summary | |
---|---|
void |
associate(IRecord another)
Associate this to the given record using a join known to the database. |
Object |
clone()
Clone this object. |
int |
compareTo(Object another)
Compare this to the given object. |
void |
delete()
Delete this object from the database. |
void |
disassociate(IRecord another)
Diassociate this from the given object. |
String |
getAsDBString(String propertyName)
Return the property value for the given property name, formatted as a database string. |
List |
getAssociated()
Return objects of all tables which are associated to this object. |
List |
getAssociated(ITableData tableData)
Return objects of the given table which are associated to this object. |
List |
getAssociated(String tableName)
Return objects of the given table which are associated to this object. |
IDatabase |
getDatabase()
Return the database. |
int |
getId()
Return the object ID. |
Iterator |
getJoins()
Return an iterator over IAssociation s which involve this
object's table. |
Iterator |
getJunctions()
Return an iterator over IAssociation s which involve this
object's table. |
ITableData |
getTableData()
Return the table data. |
String |
getTableName()
Return the table name. |
void |
insert()
Insert this object into the database. |
void |
reload()
Reload this object from the database. |
void |
set(String propertyName,
Class type,
Object value)
Set the value of the named property. |
String |
toDebugString()
Return a string representation of this object. |
String |
toString()
Return a string representation of this object. |
String |
toXMLString()
Return an XML string representation of this object. |
void |
update()
Update this object in the database. |
Methods inherited from interface org.vizzini.util.IGenericData |
---|
clear, copy, equals, get, getPropertyNames, getType, hashCode, set, set, set, set, set, set |
Field Detail |
---|
static final Integer INVALID_ID
Method Detail |
---|
void associate(IRecord another) throws SQLException
SQLException
Object clone()
clone
in interface IGenericData
int compareTo(Object another)
compareTo
in interface Comparable
compareTo
in interface IGenericData
void delete() throws SQLException
SQLException
void disassociate(IRecord another) throws SQLException
SQLException
String getAsDBString(String propertyName)
List getAssociated() throws SQLException
SQLException
List getAssociated(String tableName) throws SQLException
SQLException
List getAssociated(ITableData tableData) throws SQLException
SQLException
IDatabase getDatabase()
int getId()
Iterator getJoins()
IAssociation
s which involve this
object's table.
Iterator getJunctions()
IAssociation
s which involve this
object's table.
ITableData getTableData()
String getTableName()
void insert() throws SQLException
SQLException
void reload() throws SQLException
SQLException
void set(String propertyName, Class type, Object value)
set
in interface IGenericData
String toDebugString()
String toString()
toString
in interface IGenericData
toString
in class Object
String toXMLString()
void update() throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |