Package net.hironico.minisql.model
Class SQLObject
java.lang.Object
net.hironico.minisql.model.SQLObject
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SQLTable,SQLTableForeignKey
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intexecuteUpdate(String sql, DbConfig dbConfig) Executes an update statement on the database refered by the provided dbconfigstatic StringgetDDL(SQLObject.DDLActionEnum action) toString()
-
Field Details
-
schemaName
-
name
-
type
-
color
-
-
Constructor Details
-
SQLObject
public SQLObject()
-
-
Method Details
-
getDDL
-
getDDLCreate
-
getDDLDrop
-
getCompatibleType
-
executeUpdate
Executes an update statement on the database refered by the provided dbconfig- Parameters:
sql- command to executedbConfig- 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
-