- java.lang.Object
-
- com.appslandia.common.base.InitializeObject
-
- com.appslandia.common.record.Table
-
- All Implemented Interfaces:
InitializeSupport,Serializable
public class Table extends InitializeObject implements Serializable
- Author:
- Loc Ha
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendWhereKeyConditions(TextBuilder sqlBuilder)TableautoKey(String fieldName)TableautoKey(String fieldName, int sqlType)protected StringbuildDeleteSQL()protected StringbuildExistsSQL()protected StringbuildGetAllSQL()protected StringbuildGetSQL()protected StringbuildInsertSQL()protected StringbuildUpdateSQL()Tablefield(String fieldName, int sqlType)Tablefields(Field... fields)Tablefields(String... fieldNames)FieldgetAutoKey()SqlgetDeleteSql()SqlgetExistsSql()List<Field>getFields()SqlgetGetSql()SqlgetInsertSql()StringgetName()SqlgetUpdateSql()protected voidinit()Tablekey(String fieldName, int sqlType)Tablekeys(String... fieldNames)TablesetName(String name)-
Methods inherited from class com.appslandia.common.base.InitializeObject
assertNotInitialized, destroy, initialize
-
-
-
-
Constructor Detail
-
Table
public Table()
-
Table
public Table(String name)
-
-
Method Detail
-
init
protected void init() throws Exception- Specified by:
initin classInitializeObject- Throws:
Exception
-
buildInsertSQL
protected String buildInsertSQL()
-
buildUpdateSQL
protected String buildUpdateSQL()
-
buildDeleteSQL
protected String buildDeleteSQL()
-
buildExistsSQL
protected String buildExistsSQL()
-
buildGetSQL
protected String buildGetSQL()
-
appendWhereKeyConditions
protected void appendWhereKeyConditions(TextBuilder sqlBuilder)
-
buildGetAllSQL
protected String buildGetAllSQL()
-
getName
public String getName()
-
getAutoKey
public Field getAutoKey()
-
getInsertSql
public Sql getInsertSql()
-
getUpdateSql
public Sql getUpdateSql()
-
getDeleteSql
public Sql getDeleteSql()
-
getGetSql
public Sql getGetSql()
-
getExistsSql
public Sql getExistsSql()
-
-