|
|||||||||
| Home >> All >> org >> jdbf >> engine >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jdbf.engine.sql
Class UpdateStatement

java.lang.Objectorg.jdbf.engine.sql.SQLStatement
org.jdbf.engine.sql.UpdateStatement
- public class UpdateStatement
- extends SQLStatement
UpdateStatement is that class that represents the update sql
statement.
UpdateStatement handles the creation of sql statement with the informations
specified in a RepositoryView object and provides to execute the update statement.
| Field Summary | |
protected static java.lang.String |
SET
SET statement |
protected static java.lang.String |
UPDATE
UPDATE statement |
protected static java.lang.String |
VALUES
VALUES KEYWORD |
| Fields inherited from class org.jdbf.engine.sql.SQLStatement |
className, CLOSE_BRACE, criteria, OPEN_BRACE, statement, WHERE |
| Constructor Summary | |
UpdateStatement()
Creates the empty object |
|
UpdateStatement(org.jdbf.engine.repository.RepositoryView view,
java.lang.String[] propertiesNames,
org.jdbf.engine.criteria.Criteria criteria)
Creates the UpdateStatement object and build the statement |
|
| Method Summary | |
java.lang.String |
buildStatement(org.jdbf.engine.repository.RepositoryView repository,
java.lang.String[] propertiesNames)
Builds the update statement with the informations passed by repository. |
java.lang.String |
buildStatementForCriteria(org.jdbf.engine.repository.RepositoryView repository,
java.lang.String[] propertiesNames)
Builds the delete statement with criteria. |
int |
update(org.jdbf.engine.basic.ObjectMapped obj,
org.jdbf.engine.repository.RepositoryView view,
java.sql.Connection connection,
java.lang.String[] propertiesNames)
Executes the update statement and updates in database the ObjectMapped object specified in obj. |
int |
updateForCriteria(org.jdbf.engine.repository.RepositoryView view,
java.sql.Connection connection,
java.lang.String[] propertiesNames,
java.lang.Object[] values)
Executes the update statement and updates in database with sql criteria. |
| Methods inherited from class org.jdbf.engine.sql.SQLStatement |
toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
UPDATE
protected static final java.lang.String UPDATE
- UPDATE statement
SET
protected static final java.lang.String SET
- SET statement
VALUES
protected static final java.lang.String VALUES
- VALUES KEYWORD
| Constructor Detail |
UpdateStatement
public UpdateStatement(org.jdbf.engine.repository.RepositoryView view, java.lang.String[] propertiesNames, org.jdbf.engine.criteria.Criteria criteria)
- Creates the UpdateStatement object and build the statement
UpdateStatement
public UpdateStatement()
- Creates the empty object
| Method Detail |
buildStatement
public java.lang.String buildStatement(org.jdbf.engine.repository.RepositoryView repository, java.lang.String[] propertiesNames)
- Builds the update statement with the informations passed by repository.
These informations are:
- tableName;
- columnTableName
- Specified by:
buildStatementin classSQLStatement
buildStatementForCriteria
public java.lang.String buildStatementForCriteria(org.jdbf.engine.repository.RepositoryView repository, java.lang.String[] propertiesNames)
- Builds the delete statement with criteria.
- Specified by:
buildStatementForCriteriain classSQLStatement
update
public int update(org.jdbf.engine.basic.ObjectMapped obj, org.jdbf.engine.repository.RepositoryView view, java.sql.Connection connection, java.lang.String[] propertiesNames) throws java.sql.SQLException, org.jdbf.engine.mapping.MappingException
- Executes the update statement and updates in database the ObjectMapped object specified in obj.
updateForCriteria
public int updateForCriteria(org.jdbf.engine.repository.RepositoryView view, java.sql.Connection connection, java.lang.String[] propertiesNames, java.lang.Object[] values) throws java.sql.SQLException, org.jdbf.engine.mapping.MappingException
- Executes the update statement and updates in database with sql criteria.
|
|||||||||
| Home >> All >> org >> jdbf >> engine >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC