Class SQLObject

java.lang.Object
net.hironico.minisql.model.SQLObject
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SQLTable, SQLTableForeignKey

public class SQLObject extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • SQLObject

      public SQLObject()
  • Method Details

    • getDDL

      public String getDDL(SQLObject.DDLActionEnum action)
    • getDDLCreate

      public String getDDLCreate()
    • getDDLDrop

      public String getDDLDrop()
    • getCompatibleType

      public static String getCompatibleType(SQLColumn col)
    • executeUpdate

      protected int executeUpdate(String sql, DbConfig dbConfig) throws Exception
      Executes an update statement on the database refered by the provided dbconfig
      Parameters:
      sql - command to execute
      dbConfig - the target database to execute the common onto
      Returns:
      update count from the common execute update.
      Throws:
      Exception - if anything goes wrong : connection, driver problem, invalid common...
    • toString

      public String toString()
      Overrides:
      toString in class Object