org.deegree.metadata.persistence.iso.generating
Class GenerateQueryableProperties

java.lang.Object
  extended by org.deegree.metadata.persistence.iso.generating.GenerateQueryableProperties

public class GenerateQueryableProperties
extends java.lang.Object

Here are all the queryable properties encapsulated which have to put into the backend. Here is the functionality of the INSERT and UPDATE action.

Version:
$Revision: 28229 $, $Date: 2010-11-15 17:03:29 +0100 (Mo, 15. Nov 2010) $
Author:
Steffen Thomas, last edited by: $Author: sthomas $

Constructor Summary
GenerateQueryableProperties()
           
 
Method Summary
 void executeQueryableProperties(boolean isUpdate, java.sql.Connection connection, int operatesOnId, ISORecord rec)
          Method that encapsulates the generating for all the queryable properties.
 int generateMainDatabaseDataset(java.sql.Connection connection, ISORecord rec)
          Generates and inserts the maindatabasetable that is needed for the queryable properties databasetables to derive from.
 int updateMainDatabaseTable(java.sql.Connection conn, ISORecord rec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateQueryableProperties

public GenerateQueryableProperties()
Method Detail

generateMainDatabaseDataset

public int generateMainDatabaseDataset(java.sql.Connection connection,
                                       ISORecord rec)
                                throws MetadataStoreException,
                                       javax.xml.stream.XMLStreamException
Generates and inserts the maindatabasetable that is needed for the queryable properties databasetables to derive from.

BE AWARE: the "modified" attribute is get from the first position in the list. The backend has the possibility to add one such attribute. In the xsd-file there are more possible...

Parameters:
connection - the SQL connection
stm -
parsedElement -
Returns:
the primarykey of the inserted dataset which is the foreignkey for the queryable properties databasetables
Throws:
MetadataStoreException
javax.xml.stream.XMLStreamException

updateMainDatabaseTable

public int updateMainDatabaseTable(java.sql.Connection conn,
                                   ISORecord rec)
                            throws MetadataStoreException
Throws:
MetadataStoreException

executeQueryableProperties

public void executeQueryableProperties(boolean isUpdate,
                                       java.sql.Connection connection,
                                       int operatesOnId,
                                       ISORecord rec)
                                throws MetadataStoreException
Method that encapsulates the generating for all the queryable properties.

Parameters:
isUpdate -
connection -
stm -
operatesOnId -
parsedElement -
Throws:
MetadataStoreException


Copyright © 2011. All Rights Reserved.