persistence
Interface AbstractSQLFactory

All Known Implementing Classes:
AbstractSQLFactoryImpl

public interface AbstractSQLFactory

Author:
bram 15-okt-2003

Nested Class Summary
static class AbstractSQLFactory.Registry
          Experimentele klasse om TableComponents desnoods zelf op te slaan (eerst nog anno- teren).
static class AbstractSQLFactory.TreeInfo
          Nog experimentelere klasse die als key zou kunnen dienen.
 
Field Summary
static AbstractSQLFactory.Registry registry
           
 
Method Summary
 void addToScript()
          Adds this class's create/drop code to script.
 java.lang.String getCreateStatement(java.lang.String dialectVariableName)
          Create String with all needed statements for creation of tables for objects of the class whose persistence properties are described in NodeList.
 java.lang.String getDeleteStatement()
          Create String with all needed statements for deletion of object whose persistence properties are described in NodeList.
 java.lang.String getDropStatement(java.lang.String dialectVariableName)
          Create String with all needed statements for dropping of tables for objects of the class whose persistence properties are described in NodeList.
 java.lang.String getInsertStatement()
          Create String with all needed statements for insertion of object whose persistence properties are described in NodeList.
 java.lang.String getQueryStatements()
           
 java.lang.String getReadStatement()
          Create String with all needed statements for reading object whose persistence properties are described in NodeList.
 java.lang.String getUpdateStatement()
          Create String with all needed statements for update of object whose persistence properties are described in NodeList.
 void setCurrentNodeList(org.w3c.dom.Node node, java.lang.String fullPrincipalClassName)
          Sets a NodeList of <persistentClass>-elements as the current one and extraction of useful info happens.
 

Field Detail

registry

public static final AbstractSQLFactory.Registry registry
Method Detail

getInsertStatement

public java.lang.String getInsertStatement()
Create String with all needed statements for insertion of object whose persistence properties are described in NodeList.

Returns:

getUpdateStatement

public java.lang.String getUpdateStatement()
Create String with all needed statements for update of object whose persistence properties are described in NodeList.

Returns:

getDeleteStatement

public java.lang.String getDeleteStatement()
Create String with all needed statements for deletion of object whose persistence properties are described in NodeList.

Returns:

getCreateStatement

public java.lang.String getCreateStatement(java.lang.String dialectVariableName)
Create String with all needed statements for creation of tables for objects of the class whose persistence properties are described in NodeList.

Parameters:
dialectVariableName -
Returns:

getDropStatement

public java.lang.String getDropStatement(java.lang.String dialectVariableName)
Create String with all needed statements for dropping of tables for objects of the class whose persistence properties are described in NodeList.

Parameters:
dialectVariableName -
Returns:

setCurrentNodeList

public void setCurrentNodeList(org.w3c.dom.Node node,
                               java.lang.String fullPrincipalClassName)
                        throws CompTypeRequiredException,
                               MissingContentTagException
Sets a NodeList of <persistentClass>-elements as the current one and extraction of useful info happens.

Parameters:
node -
fullPrincipalClassName -
Throws:
CompTypeRequiredException
MissingContentTagException

addToScript

public void addToScript()
Adds this class's create/drop code to script.


getReadStatement

public java.lang.String getReadStatement()
Create String with all needed statements for reading object whose persistence properties are described in NodeList.

Returns:

getQueryStatements

public java.lang.String getQueryStatements()