Class StandardSQLTableManager
java.lang.Object
org.exoplatform.services.database.DBTableManager
org.exoplatform.services.database.StandardSQLTableManager
- Direct Known Subclasses:
MSSQLServerTableManager,OracleTableManager
Created by The eXo Platform SAS
Author : Tuan Nguyen tuan08@users.sourceforge.net Apr 4, 2006
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendBinaryField(TableField field, StringBuilder builder) protected voidappendBooleanField(TableField field, StringBuilder builder) protected voidappendDateField(TableField field, StringBuilder builder) protected voidappendDateTimeField(TableField field, StringBuilder builder) protected voidappendDoubleField(TableField field, StringBuilder builder) protected voidappendFloatField(TableField field, StringBuilder builder) protected voidappendId(StringBuilder builder) protected voidappendIntegerField(TableField field, StringBuilder builder) protected voidappendLongField(TableField field, StringBuilder builder) protected voidappendStringField(TableField field, StringBuilder builder) <T extends DBObject>
voidcreateTable(Class<T> type, boolean dropIfExist) This method should: 1.<T extends DBObject>
voidThis method should: 1.<T extends DBObject>
booleanThis method should: 1.Methods inherited from class org.exoplatform.services.database.DBTableManager
createDBTableManager
-
Constructor Details
-
StandardSQLTableManager
-
-
Method Details
-
createTable
Description copied from class:DBTableManagerThis method should: 1. Extract the table information such table name and table fields from the class T, the information are annotated in the class T 2. Generate the SQL statement and create the table- Specified by:
createTablein classDBTableManager- Type Parameters:
T-- Parameters:
type-dropIfExist-- Throws:
Exception
-
dropTable
Description copied from class:DBTableManagerThis method should: 1. Extract the table information from the class T, the information are annotated in the class T 2. Generate the SQL statement and drop the table- Specified by:
dropTablein classDBTableManager- Type Parameters:
T-- Parameters:
type-- Throws:
Exception
-
hasTable
Description copied from class:DBTableManagerThis method should: 1. Extract the table information from the class T, the information are annotated in the class T 2. Check to see if the table is existed in the database system- Specified by:
hasTablein classDBTableManager- Type Parameters:
T-- Parameters:
type-- Returns:
- Throws:
Exception
-
appendId
-
appendStringField
- Throws:
Exception
-
appendIntegerField
-
appendLongField
-
appendFloatField
-
appendDoubleField
-
appendBooleanField
-
appendDateField
-
appendDateTimeField
-
appendBinaryField
-