Class StandardSQLTableManager

java.lang.Object
org.exoplatform.services.database.DBTableManager
org.exoplatform.services.database.StandardSQLTableManager
Direct Known Subclasses:
MSSQLServerTableManager, OracleTableManager

public class StandardSQLTableManager extends DBTableManager
Created by The eXo Platform SAS Author : Tuan Nguyen tuan08@users.sourceforge.net Apr 4, 2006
  • Constructor Details

    • StandardSQLTableManager

      public StandardSQLTableManager(ExoDatasource datasource)
  • Method Details

    • createTable

      public <T extends DBObject> void createTable(Class<T> type, boolean dropIfExist) throws Exception
      Description copied from class: DBTableManager
      This 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:
      createTable in class DBTableManager
      Type Parameters:
      T -
      Parameters:
      type -
      dropIfExist -
      Throws:
      Exception
    • dropTable

      public <T extends DBObject> void dropTable(Class<T> type) throws Exception
      Description copied from class: DBTableManager
      This 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:
      dropTable in class DBTableManager
      Type Parameters:
      T -
      Parameters:
      type -
      Throws:
      Exception
    • hasTable

      public <T extends DBObject> boolean hasTable(Class<T> type) throws Exception
      Description copied from class: DBTableManager
      This 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:
      hasTable in class DBTableManager
      Type Parameters:
      T -
      Parameters:
      type -
      Returns:
      Throws:
      Exception
    • appendId

      protected void appendId(StringBuilder builder)
    • appendStringField

      protected void appendStringField(TableField field, StringBuilder builder) throws Exception
      Throws:
      Exception
    • appendIntegerField

      protected void appendIntegerField(TableField field, StringBuilder builder)
    • appendLongField

      protected void appendLongField(TableField field, StringBuilder builder)
    • appendFloatField

      protected void appendFloatField(TableField field, StringBuilder builder)
    • appendDoubleField

      protected void appendDoubleField(TableField field, StringBuilder builder)
    • appendBooleanField

      protected void appendBooleanField(TableField field, StringBuilder builder)
    • appendDateField

      protected void appendDateField(TableField field, StringBuilder builder)
    • appendDateTimeField

      protected void appendDateTimeField(TableField field, StringBuilder builder)
    • appendBinaryField

      protected void appendBinaryField(TableField field, StringBuilder builder)