|
|||||||||
| Home >> All >> jflight >> [ db overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jflight.db
Class AbstractDAO

java.lang.Objectjflight.db.AbstractDAO
- public abstract class AbstractDAO
- extends java.lang.Object
the base class for all Data access objects
| Field Summary | |
java.util.Vector |
fields
|
| Constructor Summary | |
AbstractDAO()
|
|
| Method Summary | |
protected void |
createTable()
Method createTable create the necessary table for this object type |
java.lang.Object |
findDOAByKey(int pk)
Method findDOAByKey find the object with specified primary key in database |
java.lang.Object |
findObjects(java.lang.String whereClause,
java.lang.Object[] queryParameters)
Method findObjects in database |
protected java.lang.String |
getCreateTableStmt()
|
protected java.util.Vector |
getFieldMap()
|
protected java.lang.String |
getInsertStmt()
Method getInsertStmt |
protected int |
getNextID(java.sql.Connection conn)
Method getNextID gets the next valid primary key |
protected abstract java.lang.String |
getPkColumnName()
|
protected abstract java.lang.String |
getTableName()
|
protected java.lang.String |
getUpdateStmt()
|
protected abstract java.util.Vector |
load(java.sql.PreparedStatement ps)
|
java.util.Vector |
loadAll()
Method loadAll loads all object from database |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
fields
public java.util.Vector fields
| Constructor Detail |
AbstractDAO
public AbstractDAO()
| Method Detail |
getPkColumnName
protected abstract java.lang.String getPkColumnName()
getTableName
protected abstract java.lang.String getTableName()
load
protected abstract java.util.Vector load(java.sql.PreparedStatement ps) throws java.sql.SQLException
getFieldMap
protected java.util.Vector getFieldMap()
getCreateTableStmt
protected java.lang.String getCreateTableStmt()
getUpdateStmt
protected java.lang.String getUpdateStmt()
getInsertStmt
protected java.lang.String getInsertStmt()
- Method getInsertStmt
createTable
protected void createTable()
- Method createTable create the necessary table for this object type
getNextID
protected int getNextID(java.sql.Connection conn) throws java.sql.SQLException
- Method getNextID gets the next valid primary key
loadAll
public java.util.Vector loadAll()
- Method loadAll loads all object from database
findDOAByKey
public java.lang.Object findDOAByKey(int pk)
- Method findDOAByKey find the object with specified primary key in database
findObjects
public java.lang.Object findObjects(java.lang.String whereClause, java.lang.Object[] queryParameters)
- Method findObjects in database
|
|||||||||
| Home >> All >> jflight >> [ db overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
jflight.db.AbstractDAO