public final class SQLStatementInsertCheck
extends java.lang.Object
| Constructor | Description | 
|---|---|
SQLStatementInsertCheck(SQLEngine engine,
                       PersistenceFactory factory) | 
 Constructor. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
insertDuplicateKeyCheck(CastorConnection conn,
                       Identity identity) | 
 Performs check for Duplicate primary key. 
 | 
public SQLStatementInsertCheck(SQLEngine engine, PersistenceFactory factory)
engine - SQL engine for all persistence operations at entities of the type this
        class is responsible for. Holds all required information of the entity type.factory - Persistence factory for the database engine the entity is persisted in.
        Used to format the SQL statement.public void insertDuplicateKeyCheck(CastorConnection conn, Identity identity) throws PersistenceException
conn - CastorConnection holding connection and PersistenceFactory to be used to create
        statement.identity - Identity of the object to insert.PersistenceException - If a database access error occurs, identity size mismatches.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com