| Package | Description |
|---|---|
| org.apache.ddlutils.dynabean |
Provides the special DdlUtils implementations of
DynaClass
and DynaBean that directly map to tables in the database
model. |
| org.apache.ddlutils.platform |
This package contains the platform implementations for the individual databases.
|
| org.apache.ddlutils.platform.postgresql |
This package contains the platform implementation for the
PostgreSQL database.
|
| Modifier and Type | Method and Description |
|---|---|
SqlDynaProperty[] |
SqlDynaClass.getNonPrimaryKeyProperties()
Returns the properties for the non-primary keys of the corresponding table.
|
SqlDynaProperty[] |
SqlDynaClass.getPrimaryKeyProperties()
Returns the properties for the primary keys of the corresponding table.
|
SqlDynaProperty[] |
SqlDynaClass.getSqlDynaProperties()
Returns the properties of this dyna class.
|
| Constructor and Description |
|---|
SqlDynaClass(Table table,
SqlDynaProperty[] properties)
Creates a new dyna class instance for the given table that has the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
PlatformImplBase.createDeleteSql(Database model,
SqlDynaClass dynaClass,
SqlDynaProperty[] primaryKeys,
org.apache.commons.beanutils.DynaBean bean)
Creates the SQL for deleting an object of the given type.
|
protected String |
PlatformImplBase.createInsertSql(Database model,
SqlDynaClass dynaClass,
SqlDynaProperty[] properties,
org.apache.commons.beanutils.DynaBean bean)
Creates the SQL for inserting an object of the given type.
|
protected String |
PlatformImplBase.createUpdateSql(Database model,
SqlDynaClass dynaClass,
SqlDynaProperty[] primaryKeys,
SqlDynaProperty[] properties,
org.apache.commons.beanutils.DynaBean bean)
Creates the SQL for updating an object of the given type.
|
protected String |
PlatformImplBase.createUpdateSql(Database model,
SqlDynaClass dynaClass,
SqlDynaProperty[] primaryKeys,
SqlDynaProperty[] properties,
org.apache.commons.beanutils.DynaBean bean)
Creates the SQL for updating an object of the given type.
|
protected String |
PlatformImplBase.createUpdateSql(Database model,
SqlDynaClass dynaClass,
SqlDynaProperty[] primaryKeys,
SqlDynaProperty[] properties,
org.apache.commons.beanutils.DynaBean oldBean,
org.apache.commons.beanutils.DynaBean newBean)
Creates the SQL for updating an object of the given type.
|
protected String |
PlatformImplBase.createUpdateSql(Database model,
SqlDynaClass dynaClass,
SqlDynaProperty[] primaryKeys,
SqlDynaProperty[] properties,
org.apache.commons.beanutils.DynaBean oldBean,
org.apache.commons.beanutils.DynaBean newBean)
Creates the SQL for updating an object of the given type.
|
protected void |
PlatformImplBase.setObject(PreparedStatement statement,
int sqlIndex,
org.apache.commons.beanutils.DynaBean dynaBean,
SqlDynaProperty property)
Sets a parameter of the prepared statement based on the type of the column of the property.
|
protected HashMap |
PlatformImplBase.toColumnValues(SqlDynaProperty[] properties,
org.apache.commons.beanutils.DynaBean bean)
Derives the column values for the given dyna properties from the dyna bean.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PostgreSqlPlatform.setObject(PreparedStatement statement,
int sqlIndex,
org.apache.commons.beanutils.DynaBean dynaBean,
SqlDynaProperty property)
Sets a parameter of the prepared statement based on the type of the column of the property.
|
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.