|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpersistence.AbstractSQLFactoryImpl
Implementatie van AbstractSQLFactory.
Nested Class Summary |
Nested classes inherited from class persistence.AbstractSQLFactory |
AbstractSQLFactory.Registry, AbstractSQLFactory.TreeInfo |
Field Summary | |
private java.lang.String |
connectionExpression
|
private java.lang.String |
fullPrincipalClassName
|
private TableComponent |
persistenceTree
|
private static persistence.script.DBScript |
script
|
Fields inherited from interface persistence.AbstractSQLFactory |
registry |
Constructor Summary | |
AbstractSQLFactoryImpl(org.w3c.dom.Node involvedNode,
java.lang.String fullPrincipalClassName,
java.lang.String connectionExpression)
|
Method Summary | |
void |
addToScript()
Adds this class's create/drop code to script. |
static void |
createScript()
|
java.lang.String |
getCreateStatement(java.lang.String dialectVariableName)
One has to establish a Connection named conn, and to catch Exceptions. |
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)
One has to establish a Connection named conn, and to catch Exceptions. |
java.lang.String |
getInsertStatement()
Create String with all needed statements for insertion of object whose persistence properties are described in NodeList. |
private java.lang.String |
getQueryCompTypeStatement()
|
private java.lang.String |
getQueryJoinStatement()
|
private java.lang.String |
getQueryRegisterStatement()
|
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. |
static void |
setAllClassesToPersist(java.util.Collection coll)
coll contains all classes which will have to be persisted. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private TableComponent persistenceTree
private java.lang.String fullPrincipalClassName
private java.lang.String connectionExpression
private static persistence.script.DBScript script
Constructor Detail |
public AbstractSQLFactoryImpl(org.w3c.dom.Node involvedNode, java.lang.String fullPrincipalClassName, java.lang.String connectionExpression) throws CompTypeRequiredException, MissingContentTagException
Method Detail |
public static void setAllClassesToPersist(java.util.Collection coll)
public void setCurrentNodeList(org.w3c.dom.Node node, java.lang.String fullPrincipalClassName) throws CompTypeRequiredException, MissingContentTagException
setCurrentNodeList
in interface AbstractSQLFactory
node
- fullPrincipalClassName
-
CompTypeRequiredException
MissingContentTagException
public java.lang.String getInsertStatement()
AbstractSQLFactory
getInsertStatement
in interface AbstractSQLFactory
persistence.AbstractSQLFactory#getInsertStatement(String)
public java.lang.String getReadStatement()
AbstractSQLFactory
getReadStatement
in interface AbstractSQLFactory
persistence.AbstractSQLFactory#getReadStatement(String)
public java.lang.String getUpdateStatement()
AbstractSQLFactory
getUpdateStatement
in interface AbstractSQLFactory
public java.lang.String getDeleteStatement()
AbstractSQLFactory
getDeleteStatement
in interface AbstractSQLFactory
public java.lang.String getCreateStatement(java.lang.String dialectVariableName)
getCreateStatement
in interface AbstractSQLFactory
dialectVariableName
-
AbstractSQLFactory.getCreateStatement(String)
public java.lang.String getDropStatement(java.lang.String dialectVariableName)
getDropStatement
in interface AbstractSQLFactory
dialectVariableName
-
AbstractSQLFactory.getDropStatement(String)
public static void createScript()
public void addToScript()
AbstractSQLFactory
addToScript
in interface AbstractSQLFactory
private java.lang.String getQueryJoinStatement()
private java.lang.String getQueryRegisterStatement()
private java.lang.String getQueryCompTypeStatement()
public java.lang.String getQueryStatements()
getQueryStatements
in interface AbstractSQLFactory
AbstractSQLFactory.getQueryStatements()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |