Package com.appslandia.common.easyrecord
Class Table
- java.lang.Object
-
- com.appslandia.common.base.InitializeObject
-
- com.appslandia.common.easyrecord.Table
-
- All Implemented Interfaces:
InitializeSupport,Serializable
public class Table extends InitializeObject implements Serializable
- Author:
- Loc Ha
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.appslandia.common.base.InitializeObject
mutex
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableaddAutoKey(String fieldName)TableaddField(Field field)TableaddField(String fieldName, int sqlType)TableaddFields(String... fieldNames)TableaddKeys(String... fieldNames)protected voidappendWhereKeyConditions(TextBuilder sqlBuilder)protected StringbuildDeleteSQL()protected StringbuildExistsSQL()protected StringbuildGetAllSQL()protected StringbuildGetSQL()protected StringbuildInsertSQL()protected StringbuildUpdateSQL()FieldgetAutoKey()SqlgetDeleteSql()SqlgetExistsSql()List<Field>getFields()StringgetGetAllSql()SqlgetGetSql()SqlgetInsertSql()StringgetName()SqlgetUpdateSql()protected voidinit()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()
-
getGetAllSql
public String getGetAllSql()
-
-