Enhydra 5.1 API

org.webdocwf.util.genericstore
Class GenericStoreDO

java.lang.Object
  |
  +--com.lutris.appserver.server.sql.CoreDO
        |
        +--com.lutris.appserver.server.sql.CloneableDO
              |
              +--com.lutris.dods.builder.generator.dataobject.GenericDO
                    |
                    +--org.webdocwf.dods.access.SecureDO
                          |
                          +--org.webdocwf.util.genericstore.GenericStoreDO
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, Transaction
Direct Known Subclasses:
AttributeBinaryValueDO, AttributeBoolValueDO, AttributeDateValueDO, AttributeDefinitionDO, AttributeEnumValueDO, AttributeNumberValueDO, AttributeObjectValueDO, AttributeStringValueDO, EnumTypeDefinitionDO, EnumValueDefinitionDO, GenericObjectDO, StateTransitionDO, TypeDefinitionDO

public abstract class GenericStoreDO
extends SecureDO

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.lutris.dods.builder.generator.dataobject.GenericDO
dirty
 
Fields inherited from class com.lutris.appserver.server.sql.CoreDO
persistent, versioning
 
Constructor Summary
GenericStoreDO()
          Abstract method which must be implemented by subclasses (templates) Is necessary for SecureDO implementation
GenericStoreDO(boolean isView)
           
GenericStoreDO(ObjectId id)
           
GenericStoreDO(java.sql.ResultSet rs)
           
GenericStoreDO(java.lang.String dbName)
           
GenericStoreDO(java.lang.String dbName, boolean isView)
           
GenericStoreDO(java.lang.String dbName, ObjectId id)
           
GenericStoreDO(java.lang.String dbName, java.sql.ResultSet rs)
           
 
Method Summary
 void assertDOGenericGetBinaryAttrAccess(java.lang.String attrKey, User usr)
          Ensure that the user is allowed to read the attribute
 void assertDOGenericGetBoolAttrAccess(java.lang.String attrKey, User usr)
          Ensure that the user is allowed to read the attribute
 void assertDOGenericGetDateAttrAccess(java.lang.String attrKey, User usr)
          Ensure that the user is allowed to read the attribute
 void assertDOGenericGetDOValueAccess(java.lang.String attrKey, SecureDO value, User usr)
          Ensure that the user is allowed to read the existence of the object which is referenced by a pointer
 void assertDOGenericGetEnumAttrAccess(java.lang.String attrKey, User usr)
          Ensure that the user is allowed to read the attribute
 void assertDOGenericGetNumberAttrAccess(java.lang.String attrKey, User usr)
          Ensure that the user is allowed to read the attribute
 void assertDOGenericGetObjectAttrAccess(java.lang.String attrKey, User usr)
          Ensure that the user is allowed to read the attribute
 void assertDOGenericGetStringAttrAccess(java.lang.String attrKey, User usr)
          Ensure that the user is allowed to read the attribute
 void assertDOGenericSetBinaryAttrAccess(java.lang.String attrKey, byte[] newValue, User usr)
          Ensure that the user is allowed to set the attribute with a certain value
 void assertDOGenericSetBoolAttrAccess(java.lang.String attrKey, java.lang.Boolean newValue, User usr)
          Ensure that the user is allowed to set the attribute with a certain value
 void assertDOGenericSetDateAttrAccess(java.lang.String attrKey, java.sql.Timestamp newValue, User usr)
          Ensure that the user is allowed to set the attribute with a certain value
 void assertDOGenericSetEnumAttrAccess(java.lang.String attrKey, java.lang.String newValueType, java.lang.String newValueKey, User usr)
          Ensure that the user is allowed to set the attribute with a certain value and type
 void assertDOGenericSetEnumAttrAccess(java.lang.String attrKey, java.lang.String newValueKey, User usr)
          Ensure that the user is allowed to set the attribute with a certain value
 void assertDOGenericSetNumberAttrAccess(java.lang.String attrKey, java.math.BigDecimal newValue, User usr)
          Ensure that the user is allowed to set the attribute with a certain value
 void assertDOGenericSetObjectAttrAccess(java.lang.String attrKey, GenericStoreDO newValue, User usr)
          Ensure that the user is allowed to set the attribute with a certain value
 void assertDOGenericSetStringAttrAccess(java.lang.String attrKey, java.lang.String newValue, User usr)
          Ensure that the user is allowed to set the attribute with a certain value
static void checkAttrDefinition(java.lang.String attrKey)
          Check whether a certain Attribute-Definition exists
static void checkEnumTypeDefinition(java.lang.String typeKey)
          Check whether a certain EnumType-Definition exists
static void checkEnumValueDefinition(java.lang.String typeKey, java.lang.String valueKey)
          Check whether a certain EnumValue-Definition exists
static void checkTypeDefinition(java.lang.String key)
          Check whether a certain Type-Definition exists
abstract  GenericStoreDO createForExisting(java.math.BigDecimal bd)
          Abstract method which must be implemented by subclasses (templates) and call the static createExisting(bd) method !
 void delete()
          Delete all generic attributes
 void delete(DBTransaction dbt)
          Delete all generic attributes together with the DO Must be called at the beginning of the subclass-delete methid with an explicit transaction
static java.util.Vector findAllowedTargetStates(java.lang.String typeKey, java.lang.String stateKey)
          Find allowed state-transitions
static AttributeDefinitionDO findAttrDef(java.lang.String attrKey)
          Read a certain attribute definition
static java.util.Vector findBeginStates(java.lang.String enumTypeKey)
          Find the start-states for a certain statemachine (EnumTypeDef)
static java.util.Vector findEndStates(java.lang.String enumTypeKey)
          Find the end-states for a certain statemachine (EnumTypeDef)
static EnumTypeDefinitionDO findEnumTypeDef(java.lang.String typeKey)
          Find a certain enum-type definition
static EnumValueDefinitionDO findEnumValueDef(java.lang.String typeKey, java.lang.String valueKey)
          find a certain enum-value definition
static StateTransitionDO findStateTransition(java.lang.String currentTypeKey, java.lang.String currentStateKey, java.lang.String newStateKey)
          Find a defined state-transition
static TypeDefinitionDO findTypeDef(java.lang.String typeKey)
          Read a certain object-type definition
 java.util.TreeMap genericGetAllBinaryAttrs()
          Get all generic string attributes
 java.util.TreeMap genericGetAllBoolAttrs()
          Get all generic bool attributes
 java.util.TreeMap genericGetAllBoolAttrs(User usr)
          Get all generic bool attributes
 java.util.TreeMap genericGetAllByteAttrs(User usr)
          Get all generic string attributes
 java.util.TreeMap genericGetAllDateAttrs()
          Get all generic date attributes
 java.util.TreeMap genericGetAllDateAttrs(User usr)
          Get all generic date attributes
 java.util.TreeMap genericGetAllEnumAttrs()
          Get all generic enum attributes
 java.util.TreeMap genericGetAllEnumAttrs(User usr)
          Get all generic enum attributes
 java.util.TreeMap genericGetAllEnumTypeAttrs()
          Get all generic enum attributes types
 java.util.TreeMap genericGetAllEnumTypeAttrs(User usr)
          Get all generic enum attributes types
 java.util.TreeMap genericGetAllNumberAttrs()
          Get all generic number attributes
 java.util.TreeMap genericGetAllNumberAttrs(User usr)
          Get all generic number attributes
 java.util.TreeMap genericGetAllObjectAttrs()
          Get all generic pointer attributes
 java.util.TreeMap genericGetAllObjectAttrs(User usr)
          Get all generic pointer attributes
 java.util.Vector genericGetAllowedTargetStates(java.lang.String attrKey)
          Find allowed state-transitions
 java.util.TreeMap genericGetAllStringAttrs()
          Get all generic string attributes
 java.util.TreeMap genericGetAllStringAttrs(User usr)
          Get all generic string attributes
 byte[] genericGetBinaryAttr(java.lang.String attrKey)
          Read a certain generic attribute
 byte[] genericGetBinaryAttr(java.lang.String attrKey, User usr)
          Read a certain generic attribute
 java.lang.Boolean genericGetBoolAttr(java.lang.String attrKey)
          Read a certain generic attribute
 java.lang.Boolean genericGetBoolAttr(java.lang.String attrKey, User usr)
          Read a certain generic attribute
 java.sql.Timestamp genericGetDateAttr(java.lang.String attrKey)
          Read a certain generic attribute
 java.sql.Timestamp genericGetDateAttr(java.lang.String attrKey, User usr)
          Read a certain generic attribute
 java.lang.String genericGetEnumAttr(java.lang.String attrKey)
          Read a certain generic attribute
 java.lang.String genericGetEnumAttr(java.lang.String attrKey, User usr)
          Read a certain generic attribute
 java.lang.String genericGetEnumTypeAttr(java.lang.String attrKey)
          Read a certain generic attribute type
 java.lang.String genericGetEnumTypeAttr(java.lang.String attrKey, User usr)
          Read a certain generic attribute enum type
 java.math.BigDecimal genericGetNumberAttr(java.lang.String attrKey)
          Read a certain generic attribute
 java.math.BigDecimal genericGetNumberAttr(java.lang.String attrKey, User usr)
          Read a certain generic attribute
 GenericStoreDO genericGetObjectAttr(java.lang.String attrKey)
          Read a certain generic attribute
 GenericStoreDO genericGetObjectAttr(java.lang.String attrKey, User usr)
          Read a certain generic attribute
 StateTransitionDO genericGetStateTransition(java.lang.String attrKey, java.lang.String newStateKey)
          Find a defined state-transition
 java.lang.String genericGetStringAttr(java.lang.String attrKey)
          Read a certain generic attribute
 java.lang.String genericGetStringAttr(java.lang.String attrKey, User usr)
          Read a certain generic attribute
 boolean genericGetTargetStateAllowed(java.lang.String attrKey, java.lang.String targetStateKey)
          Check if state-transition is allowed
static boolean genericIsBeginState(java.lang.String startTypeKey, java.lang.String startValueKey)
          Check if state is a start-state
static boolean genericIsEndState(java.lang.String endTypeKey, java.lang.String endValueKey)
          Check if state is an end-state
 void genericSetBinaryAttr(java.lang.String attrKey, byte[] newValue)
          Set a certain generic attribute
 void genericSetBinaryAttr(java.lang.String attrKey, byte[] newValue, User usr)
          Set a certain generic attribute with a new value
 void genericSetBoolAttr(java.lang.String attrKey, java.lang.Boolean newValue)
          Set a certain generic attribute
 void genericSetBoolAttr(java.lang.String attrKey, java.lang.Boolean newValue, User usr)
          Set a certain generic attribute with a new value
 void genericSetDateAttr(java.lang.String attrKey, java.sql.Timestamp newValue)
          Set a certain generic attribute
 void genericSetDateAttr(java.lang.String attrKey, java.sql.Timestamp newValue, User usr)
          Set a certain generic attribute with a new value
 void genericSetEnumAttr(java.lang.String attrKey, java.lang.String newValueKey)
          Set a certain generic attribute
 void genericSetEnumAttr(java.lang.String attrKey, java.lang.String newTypeKey, java.lang.String newValueKey)
          Set a certain generic attribute
 void genericSetEnumAttr(java.lang.String attrKey, java.lang.String newTypeKey, java.lang.String newValueKey, User usr)
          Set a certain generic attribute with a new value
 void genericSetEnumAttr(java.lang.String attrKey, java.lang.String newValueKey, User usr)
          Set a certain generic attribute with a new value
 void genericSetNumberAttr(java.lang.String attrKey, java.math.BigDecimal newValue)
          Set a certain generic attribute
 void genericSetNumberAttr(java.lang.String attrKey, java.math.BigDecimal newValue, User usr)
          Set a certain generic attribute with a new value
 void genericSetObjectAttr(java.lang.String attrKey, GenericStoreDO newValue)
          Set a certain generic attribute
 void genericSetObjectAttr(java.lang.String attrKey, GenericStoreDO newValue, User usr)
          Set a certain generic attribute with a new value
 void genericSetStartStateAttr(java.lang.String attrKey, java.lang.String startTypeKey, java.lang.String startValueKey)
          Set a certain generic state attribute with a start value
 void genericSetStartStateAttr(java.lang.String attrKey, java.lang.String startTypeKey, java.lang.String startStateKey, User usr)
          Set a certain generic state attribute with a start-value
 void genericSetStateAttr(java.lang.String attrKey, java.lang.String newValueKey)
          Set a certain generic state attribute
 void genericSetStateAttr(java.lang.String attrKey, java.lang.String newValueKey, User usr)
          Set a certain generic state attribute with a state
 void genericSetStringAttr(java.lang.String attrKey, java.lang.String newValue)
          Set a certain generic attribute
 void genericSetStringAttr(java.lang.String attrKey, java.lang.String newValue, User usr)
          Set a certain generic attribute with a new value
 boolean hasDOGenericGetAttrAccess(java.lang.String attrKey, java.lang.Object value, User usr)
          Check whether the user is allowed to read the attribute with a certain current value
 boolean hasDOGenericGetAttrAccess(java.lang.String attrKey, java.lang.String type, java.lang.String value, User usr)
          Check whether the user is allowed to read the attribute with a certain current value
 boolean hasDOGenericGetBinaryAttrAccess(java.lang.String attrKey, User usr)
          Check whether the user is allowed to read the attribute
 boolean hasDOGenericGetBoolAttrAccess(java.lang.String attrKey, User usr)
          Check whether the user is allowed to read the attribute
 boolean hasDOGenericGetDateAttrAccess(java.lang.String attrKey, User usr)
          Check whether the user is allowed to read the attribute
 boolean hasDOGenericGetEnumAttrAccess(java.lang.String attrKey, User usr)
          Check whether the user is allowed to read the attribute
 boolean hasDOGenericGetNumberAttrAccess(java.lang.String attrKey, User usr)
          Check whether the user is allowed to read the attribute
 boolean hasDOGenericGetObjectAttrAccess(java.lang.String attrKey, User usr)
          Check whether the user is allowed to read the attribute
 boolean hasDOGenericGetStringAttrAccess(java.lang.String attrKey, User usr)
          Check whether the user is allowed to read the attribute
 boolean hasDOGenericSetAttrAccess(java.lang.String attrKey, java.lang.Object oldValue, java.lang.Object newValue, User usr)
          Check whether the user is allowed to set the attribute with a certain new value and a certain current value
 boolean hasDOGenericSetAttrAccess(java.lang.String attrKey, java.lang.String oldType, java.lang.String oldValue, java.lang.String newType, java.lang.String newValue, User usr)
          Check whether the user is allowed to set the attribute with a certain new value and a certain current value
 boolean hasDOGenericSetBinaryAttrAccess(java.lang.String attrKey, byte[] newValue, User usr)
          Check whether the user is allowed to set the attribute with a certain new value
 boolean hasDOGenericSetBoolAttrAccess(java.lang.String attrKey, java.lang.Boolean newValue, User usr)
          Check whether the user is allowed to set the attribute with a certain new value
 boolean hasDOGenericSetDateAttrAccess(java.lang.String attrKey, java.sql.Timestamp newValue, User usr)
          Check whether the user is allowed to set the attribute with a certain new value
 boolean hasDOGenericSetEnumAttrAccess(java.lang.String attrKey, java.lang.String newValueType, java.lang.String newValueKey, User usr)
          Check whether the user is allowed to set the attribute with a certain new value
 boolean hasDOGenericSetNumberAttrAccess(java.lang.String attrKey, java.math.BigDecimal newValue, User usr)
          Check whether the user is allowed to set the attribute with a certain new value
 boolean hasDOGenericSetObjectAttrAccess(java.lang.String attrKey, GenericStoreDO newValue, User usr)
          Check whether the user is allowed to set the attribute with a certain new value
 boolean hasDOGenericSetStringAttrAccess(java.lang.String attrKey, java.lang.String newValue, User usr)
          Check whether the user is allowed to set the attribute with a certain new value
 void loadGenericBinaryData()
          Load the string attributes
 void loadGenericBoolData()
          Load the date attributes
 void loadGenericDateData()
          Load the date attributes
 void loadGenericEnumData()
          Load the enum attributes
 void loadGenericNumberData()
          Load the number attributes
 void loadGenericObjectData()
          Load the pointer attributes
 void loadGenericObjectDO()
          Load the object extension
 void loadGenericStringData()
          Load the string attributes
 void save()
          Write the generic attributes to the DB
 void save(DBTransaction dbt)
          Write the generic attributes to the DB Must be called at the end of subclass save-method which an explicit transaction
 
Methods inherited from class org.webdocwf.dods.access.SecureDO
assertDOCopyAccess, assertDODeleteAccess, assertDOGetAccess, assertDOGetDOValueAccess, assertDOGetDOValueAccess, assertDOGetDOValueAccess, assertDOGetDOValueAccess, assertDOGetDOValueAccess, assertDOGetDOValueAccess, assertDOGetDOValueAccess, assertDOGetDOValueAccess, assertDOGetDOValueAccess, assertDOGetDOValueAccess, assertDOGetVersionAccess, assertDOIsReadOnlyAccess, assertDOMakeReadOnlyAccess, assertDOMakeReadWriteAccess, checkLoad, delete, delete, getHandle, getHandle, getVersion, getVersion, hasDOCopyAccess, hasDODeleteAccess, hasDOGetAccess, hasDOGetAttrAccess, hasDOGetAttrAccess, hasDOGetAttrAccess, hasDOGetAttrAccess, hasDOGetAttrAccess, hasDOGetAttrAccess, hasDOGetAttrAccess, hasDOGetAttrAccess, hasDOGetAttrAccess, hasDOGetDOValueAccess, hasDOGetDOValueAccess, hasDOGetDOValueAccess, hasDOGetDOValueAccess, hasDOGetDOValueAccess, hasDOGetDOValueAccess, hasDOGetDOValueAccess, hasDOGetDOValueAccess, hasDOGetDOValueAccess, hasDOGetDOValueAccess, hasDOGetVersionAccess, hasDOIsReadOnlyAccess, hasDOMakeReadOnlyAccess, hasDOMakeReadWriteAccess, hasDOSetAttrAccess, hasDOSetAttrAccess, hasDOSetAttrAccess, hasDOSetAttrAccess, hasDOSetAttrAccess, hasDOSetAttrAccess, hasDOSetAttrAccess, hasDOSetAttrAccess, hasDOSetAttrAccess, hasMatchingHandle, hasMatchingHandle, hasQueryFindAccess, isReadOnly, isReadOnly, makeReadOnly, makeReadOnly, makeReadWrite, makeReadWrite
 
Methods inherited from class com.lutris.dods.builder.generator.dataobject.GenericDO
cloneUnique, compareCond, copyBigDecimal, copyByteArray, copyDate, copyString, copyTime, copyTimestamp, createDO, executeDelete, executeInsert, executeUpdate, finalizeInsert, finalizeUpdate, getCacheHandle, getData, getOriginDatabase, getPrimaryKeyName, isDirty, makeIdentical, markClean, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, markNewValue, printMsg, setData, setOId, setPrepStmtParam_BigDecimal, setPrepStmtParam_boolean, setPrepStmtParam_byte, setPrepStmtParam_bytes, setPrepStmtParam_DO, setPrepStmtParam_double, setPrepStmtParam_float, setPrepStmtParam_int, setPrepStmtParam_java_math_BigDecimal, setPrepStmtParam_java_sql_Date, setPrepStmtParam_java_sql_Time, setPrepStmtParam_java_sql_Timestamp, setPrepStmtParam_long, setPrepStmtParam_short, setPrepStmtParam_String, toString
 
Methods inherited from class com.lutris.appserver.server.sql.CloneableDO
clone
 
Methods inherited from class com.lutris.appserver.server.sql.CoreDO
addToCache, deleteFromCache, disableVersioning, evict, finalizeDelete, getDeleteStatement, getInsertStatement, getNewVersion, getOId, getOIdColumnName, getTableName, getUpdateStatement, getVersionColumnName, isPersistent, refresh, setNewVersion, setOIdColumnName, setPersistent, setVersion, setVersionColumnName, updateCache
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericStoreDO

public GenericStoreDO()
               throws DatabaseManagerException,
                      ObjectIdException
Abstract method which must be implemented by subclasses (templates) Is necessary for SecureDO implementation


GenericStoreDO

public GenericStoreDO(java.lang.String dbName)
               throws DatabaseManagerException,
                      ObjectIdException

GenericStoreDO

public GenericStoreDO(boolean isView)
               throws ObjectIdException,
                      DatabaseManagerException

GenericStoreDO

public GenericStoreDO(java.lang.String dbName,
                      boolean isView)
               throws ObjectIdException,
                      DatabaseManagerException

GenericStoreDO

public GenericStoreDO(ObjectId id)
               throws ObjectIdException,
                      DatabaseManagerException

GenericStoreDO

public GenericStoreDO(java.lang.String dbName,
                      ObjectId id)
               throws ObjectIdException,
                      DatabaseManagerException

GenericStoreDO

public GenericStoreDO(java.sql.ResultSet rs)
               throws java.sql.SQLException,
                      ObjectIdException,
                      DatabaseManagerException

GenericStoreDO

public GenericStoreDO(java.lang.String dbName,
                      java.sql.ResultSet rs)
               throws java.sql.SQLException,
                      ObjectIdException,
                      DatabaseManagerException
Method Detail

createForExisting

public abstract GenericStoreDO createForExisting(java.math.BigDecimal bd)
                                          throws java.sql.SQLException,
                                                 ObjectIdException,
                                                 DataObjectException,
                                                 DatabaseManagerException
Abstract method which must be implemented by subclasses (templates) and call the static createExisting(bd) method !

Parameters:
bd - ObjectID as BigDecimal of the object which must be read from the DB
Returns:
The object which was read from the DB
java.sql.SQLException
ObjectIdException
DataObjectException
DatabaseManagerException

assertDOGenericGetEnumAttrAccess

public void assertDOGenericGetEnumAttrAccess(java.lang.String attrKey,
                                             User usr)
                                      throws AccessException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Ensure that the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericGetDateAttrAccess

public void assertDOGenericGetDateAttrAccess(java.lang.String attrKey,
                                             User usr)
                                      throws AccessException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Ensure that the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericGetBoolAttrAccess

public void assertDOGenericGetBoolAttrAccess(java.lang.String attrKey,
                                             User usr)
                                      throws AccessException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Ensure that the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericGetNumberAttrAccess

public void assertDOGenericGetNumberAttrAccess(java.lang.String attrKey,
                                               User usr)
                                        throws AccessException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Ensure that the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericGetStringAttrAccess

public void assertDOGenericGetStringAttrAccess(java.lang.String attrKey,
                                               User usr)
                                        throws AccessException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Ensure that the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericGetBinaryAttrAccess

public void assertDOGenericGetBinaryAttrAccess(java.lang.String attrKey,
                                               User usr)
                                        throws AccessException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Ensure that the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericGetObjectAttrAccess

public void assertDOGenericGetObjectAttrAccess(java.lang.String attrKey,
                                               User usr)
                                        throws AccessException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Ensure that the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericGetDOValueAccess

public void assertDOGenericGetDOValueAccess(java.lang.String attrKey,
                                            SecureDO value,
                                            User usr)
                                     throws AccessException,
                                            GenericStoreDefinitionException,
                                            DataObjectException
Ensure that the user is allowed to read the existence of the object which is referenced by a pointer

Parameters:
attrKey - The name of the attribute (pointer) which will be read
value - The DO which will be read
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericSetEnumAttrAccess

public void assertDOGenericSetEnumAttrAccess(java.lang.String attrKey,
                                             java.lang.String newValueKey,
                                             User usr)
                                      throws AccessException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Ensure that the user is allowed to set the attribute with a certain value

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericSetEnumAttrAccess

public void assertDOGenericSetEnumAttrAccess(java.lang.String attrKey,
                                             java.lang.String newValueType,
                                             java.lang.String newValueKey,
                                             User usr)
                                      throws AccessException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Ensure that the user is allowed to set the attribute with a certain value and type

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericSetDateAttrAccess

public void assertDOGenericSetDateAttrAccess(java.lang.String attrKey,
                                             java.sql.Timestamp newValue,
                                             User usr)
                                      throws AccessException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Ensure that the user is allowed to set the attribute with a certain value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new attribute value wich will be set
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericSetBoolAttrAccess

public void assertDOGenericSetBoolAttrAccess(java.lang.String attrKey,
                                             java.lang.Boolean newValue,
                                             User usr)
                                      throws AccessException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Ensure that the user is allowed to set the attribute with a certain value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new attribute value wich will be set
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericSetNumberAttrAccess

public void assertDOGenericSetNumberAttrAccess(java.lang.String attrKey,
                                               java.math.BigDecimal newValue,
                                               User usr)
                                        throws AccessException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Ensure that the user is allowed to set the attribute with a certain value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new attribute value wich will be set
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericSetStringAttrAccess

public void assertDOGenericSetStringAttrAccess(java.lang.String attrKey,
                                               java.lang.String newValue,
                                               User usr)
                                        throws AccessException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Ensure that the user is allowed to set the attribute with a certain value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new attribute value wich will be set
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericSetBinaryAttrAccess

public void assertDOGenericSetBinaryAttrAccess(java.lang.String attrKey,
                                               byte[] newValue,
                                               User usr)
                                        throws AccessException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Ensure that the user is allowed to set the attribute with a certain value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new attribute value wich will be set
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

assertDOGenericSetObjectAttrAccess

public void assertDOGenericSetObjectAttrAccess(java.lang.String attrKey,
                                               GenericStoreDO newValue,
                                               User usr)
                                        throws AccessException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Ensure that the user is allowed to set the attribute with a certain value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new attribute value wich will be set
usr - The user which is asked for the access right
AccessException
GenericStoreDefinitionException
DataObjectException

genericGetEnumTypeAttr

public java.lang.String genericGetEnumTypeAttr(java.lang.String attrKey,
                                               User usr)
                                        throws DataObjectException,
                                               AccessException,
                                               GenericStoreDefinitionException
Read a certain generic attribute enum type

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
Returns:
The desired generic attribute enum type of the DO
DataObjectException
AccessException
GenericStoreDefinitionException

genericGetEnumAttr

public java.lang.String genericGetEnumAttr(java.lang.String attrKey,
                                           User usr)
                                    throws DataObjectException,
                                           AccessException,
                                           GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
Returns:
The desired generic attribute value of the DO
DataObjectException
AccessException
GenericStoreDefinitionException

genericGetDateAttr

public java.sql.Timestamp genericGetDateAttr(java.lang.String attrKey,
                                             User usr)
                                      throws DataObjectException,
                                             AccessException,
                                             GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
Returns:
The desired generic attribute value of the DO
DataObjectException
AccessException
GenericStoreDefinitionException

genericGetBoolAttr

public java.lang.Boolean genericGetBoolAttr(java.lang.String attrKey,
                                            User usr)
                                     throws DataObjectException,
                                            AccessException,
                                            GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
Returns:
The desired generic attribute value of the DO
DataObjectException
AccessException
GenericStoreDefinitionException

genericGetStringAttr

public java.lang.String genericGetStringAttr(java.lang.String attrKey,
                                             User usr)
                                      throws DataObjectException,
                                             AccessException,
                                             GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
Returns:
The desired generic attribute value of the DO
DataObjectException
AccessException
GenericStoreDefinitionException

genericGetBinaryAttr

public byte[] genericGetBinaryAttr(java.lang.String attrKey,
                                   User usr)
                            throws DataObjectException,
                                   AccessException,
                                   GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
Returns:
The desired generic attribute value of the DO
DataObjectException
AccessException
GenericStoreDefinitionException

genericGetNumberAttr

public java.math.BigDecimal genericGetNumberAttr(java.lang.String attrKey,
                                                 User usr)
                                          throws DataObjectException,
                                                 AccessException,
                                                 GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
Returns:
The desired generic attribute value of the DO
DataObjectException
AccessException
GenericStoreDefinitionException

genericGetObjectAttr

public GenericStoreDO genericGetObjectAttr(java.lang.String attrKey,
                                           User usr)
                                    throws DataObjectException,
                                           AccessException,
                                           GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
usr - The user which is asked for the access right
Returns:
The desired generic attribute value of the DO
DataObjectException
AccessException
GenericStoreDefinitionException

hasDOGenericGetEnumAttrAccess

public boolean hasDOGenericGetEnumAttrAccess(java.lang.String attrKey,
                                             User usr)
                                      throws AccessEvalException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Check whether the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
Returns:
Whether the user has the right to read the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericGetDateAttrAccess

public boolean hasDOGenericGetDateAttrAccess(java.lang.String attrKey,
                                             User usr)
                                      throws AccessEvalException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Check whether the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
Returns:
Whether the user has the right to read the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericGetBoolAttrAccess

public boolean hasDOGenericGetBoolAttrAccess(java.lang.String attrKey,
                                             User usr)
                                      throws AccessEvalException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Check whether the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
Returns:
Whether the user has the right to read the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericGetNumberAttrAccess

public boolean hasDOGenericGetNumberAttrAccess(java.lang.String attrKey,
                                               User usr)
                                        throws AccessEvalException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Check whether the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
Returns:
Whether the user has the right to read the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericGetStringAttrAccess

public boolean hasDOGenericGetStringAttrAccess(java.lang.String attrKey,
                                               User usr)
                                        throws AccessEvalException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Check whether the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
Returns:
Whether the user has the right to read the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericGetBinaryAttrAccess

public boolean hasDOGenericGetBinaryAttrAccess(java.lang.String attrKey,
                                               User usr)
                                        throws AccessEvalException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Check whether the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
Returns:
Whether the user has the right to read the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericGetObjectAttrAccess

public boolean hasDOGenericGetObjectAttrAccess(java.lang.String attrKey,
                                               User usr)
                                        throws AccessEvalException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Check whether the user is allowed to read the attribute

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
Returns:
Whether the user has the right to read the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericGetAttrAccess

public boolean hasDOGenericGetAttrAccess(java.lang.String attrKey,
                                         java.lang.Object value,
                                         User usr)
                                  throws AccessEvalException,
                                         GenericStoreDefinitionException,
                                         DataObjectException
Check whether the user is allowed to read the attribute with a certain current value

Parameters:
attrKey - The name of the attribute which will be modified
value - The current value of the attribute which will be read
usr - The user which is asked for the access right
Returns:
Whether the user has the right to read the attribute value
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericGetAttrAccess

public boolean hasDOGenericGetAttrAccess(java.lang.String attrKey,
                                         java.lang.String type,
                                         java.lang.String value,
                                         User usr)
                                  throws AccessEvalException,
                                         GenericStoreDefinitionException,
                                         DataObjectException
Check whether the user is allowed to read the attribute with a certain current value

Parameters:
attrKey - The name of the attribute which will be modified
value - The current value of the attribute which will be read
type - The current type of the attribute which will be read
usr - The user which is asked for the access right
Returns:
Whether the user has the right to read the attribute value
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericSetEnumAttrAccess

public boolean hasDOGenericSetEnumAttrAccess(java.lang.String attrKey,
                                             java.lang.String newValueType,
                                             java.lang.String newValueKey,
                                             User usr)
                                      throws AccessEvalException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Check whether the user is allowed to set the attribute with a certain new value

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
Returns:
Whether the user has the right to set the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericSetDateAttrAccess

public boolean hasDOGenericSetDateAttrAccess(java.lang.String attrKey,
                                             java.sql.Timestamp newValue,
                                             User usr)
                                      throws AccessEvalException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Check whether the user is allowed to set the attribute with a certain new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
Returns:
Whether the user has the right to set the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericSetBoolAttrAccess

public boolean hasDOGenericSetBoolAttrAccess(java.lang.String attrKey,
                                             java.lang.Boolean newValue,
                                             User usr)
                                      throws AccessEvalException,
                                             GenericStoreDefinitionException,
                                             DataObjectException
Check whether the user is allowed to set the attribute with a certain new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
Returns:
Whether the user has the right to set the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericSetNumberAttrAccess

public boolean hasDOGenericSetNumberAttrAccess(java.lang.String attrKey,
                                               java.math.BigDecimal newValue,
                                               User usr)
                                        throws AccessEvalException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Check whether the user is allowed to set the attribute with a certain new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
Returns:
Whether the user has the right to set the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericSetStringAttrAccess

public boolean hasDOGenericSetStringAttrAccess(java.lang.String attrKey,
                                               java.lang.String newValue,
                                               User usr)
                                        throws AccessEvalException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Check whether the user is allowed to set the attribute with a certain new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
Returns:
Whether the user has the right to set the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericSetBinaryAttrAccess

public boolean hasDOGenericSetBinaryAttrAccess(java.lang.String attrKey,
                                               byte[] newValue,
                                               User usr)
                                        throws AccessEvalException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Check whether the user is allowed to set the attribute with a certain new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
Returns:
Whether the user has the right to set the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericSetObjectAttrAccess

public boolean hasDOGenericSetObjectAttrAccess(java.lang.String attrKey,
                                               GenericStoreDO newValue,
                                               User usr)
                                        throws AccessEvalException,
                                               GenericStoreDefinitionException,
                                               DataObjectException
Check whether the user is allowed to set the attribute with a certain new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
Returns:
Whether the user has the right to set the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericSetAttrAccess

public boolean hasDOGenericSetAttrAccess(java.lang.String attrKey,
                                         java.lang.String oldType,
                                         java.lang.String oldValue,
                                         java.lang.String newType,
                                         java.lang.String newValue,
                                         User usr)
                                  throws AccessEvalException,
                                         GenericStoreDefinitionException,
                                         DataObjectException
Check whether the user is allowed to set the attribute with a certain new value and a certain current value

Parameters:
attrKey - The name of the attribute which will be modified
oldValue - The current (old) value wich will be overwritten
oldType - The current (old) type wich will be overwritten
newValue - The new value wich will be written to the DO
newType - The new type wich will be written to the DO
usr - The user which is asked for the access right
Returns:
Whether the user has the right to set the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

hasDOGenericSetAttrAccess

public boolean hasDOGenericSetAttrAccess(java.lang.String attrKey,
                                         java.lang.Object oldValue,
                                         java.lang.Object newValue,
                                         User usr)
                                  throws AccessEvalException,
                                         GenericStoreDefinitionException,
                                         DataObjectException
Check whether the user is allowed to set the attribute with a certain new value and a certain current value

Parameters:
attrKey - The name of the attribute which will be modified
oldValue - The current (old) value wich will be overwritten
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
Returns:
Whether the user has the right to set the attribute
AccessEvalException
GenericStoreDefinitionException
DataObjectException

genericSetStateAttr

public void genericSetStateAttr(java.lang.String attrKey,
                                java.lang.String newValueKey,
                                User usr)
                         throws DataObjectException,
                                AccessException,
                                StateTransitionException,
                                GenericStoreDefinitionException
Set a certain generic state attribute with a state

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
DataObjectException
AccessException
StateTransitionException
GenericStoreDefinitionException

genericSetEnumAttr

public void genericSetEnumAttr(java.lang.String attrKey,
                               java.lang.String newValueKey,
                               User usr)
                        throws DataObjectException,
                               AccessException,
                               GenericStoreDefinitionException
Set a certain generic attribute with a new value

Parameters:
attrKey - The name of the attribute which will be modified
usr - The user which is asked for the access right
DataObjectException
AccessException
GenericStoreDefinitionException

genericSetStartStateAttr

public void genericSetStartStateAttr(java.lang.String attrKey,
                                     java.lang.String startTypeKey,
                                     java.lang.String startStateKey,
                                     User usr)
                              throws DataObjectException,
                                     AccessException,
                                     StateTransitionException,
                                     GenericStoreDefinitionException
Set a certain generic state attribute with a start-value

Parameters:
attrKey - The name of the attribute which will be modified
startStateKey - The start-value (state) wich will be written to the DO
startTypeKey - The type (state machine name) wich will be written to the DO
usr - The user which is asked for the access right
DataObjectException
AccessException
StateTransitionException
GenericStoreDefinitionException

genericSetEnumAttr

public void genericSetEnumAttr(java.lang.String attrKey,
                               java.lang.String newTypeKey,
                               java.lang.String newValueKey,
                               User usr)
                        throws DataObjectException,
                               AccessException,
                               GenericStoreDefinitionException
Set a certain generic attribute with a new value

Parameters:
attrKey - The name of the attribute which will be modified
newValueKey - The new value wich will be written to the DO
usr - The user which is asked for the access right
DataObjectException
AccessException
GenericStoreDefinitionException

genericSetDateAttr

public void genericSetDateAttr(java.lang.String attrKey,
                               java.sql.Timestamp newValue,
                               User usr)
                        throws DataObjectException,
                               AccessException,
                               GenericStoreDefinitionException
Set a certain generic attribute with a new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
DataObjectException
AccessException
GenericStoreDefinitionException

genericSetBoolAttr

public void genericSetBoolAttr(java.lang.String attrKey,
                               java.lang.Boolean newValue,
                               User usr)
                        throws DataObjectException,
                               AccessException,
                               GenericStoreDefinitionException
Set a certain generic attribute with a new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
DataObjectException
AccessException
GenericStoreDefinitionException

genericSetNumberAttr

public void genericSetNumberAttr(java.lang.String attrKey,
                                 java.math.BigDecimal newValue,
                                 User usr)
                          throws DataObjectException,
                                 AccessException,
                                 GenericStoreDefinitionException
Set a certain generic attribute with a new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
DataObjectException
AccessException
GenericStoreDefinitionException

genericSetStringAttr

public void genericSetStringAttr(java.lang.String attrKey,
                                 java.lang.String newValue,
                                 User usr)
                          throws DataObjectException,
                                 AccessException,
                                 GenericStoreDefinitionException
Set a certain generic attribute with a new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
DataObjectException
AccessException
GenericStoreDefinitionException

genericSetBinaryAttr

public void genericSetBinaryAttr(java.lang.String attrKey,
                                 byte[] newValue,
                                 User usr)
                          throws DataObjectException,
                                 AccessException,
                                 GenericStoreDefinitionException
Set a certain generic attribute with a new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
DataObjectException
AccessException
GenericStoreDefinitionException

genericSetObjectAttr

public void genericSetObjectAttr(java.lang.String attrKey,
                                 GenericStoreDO newValue,
                                 User usr)
                          throws DataObjectException,
                                 AccessException,
                                 GenericStoreDefinitionException
Set a certain generic attribute with a new value

Parameters:
attrKey - The name of the attribute which will be modified
newValue - The new value wich will be written to the DO
usr - The user which is asked for the access right
DataObjectException
AccessException
GenericStoreDefinitionException

genericGetEnumTypeAttr

public java.lang.String genericGetEnumTypeAttr(java.lang.String attrKey)
                                        throws DataObjectException
Read a certain generic attribute type

Parameters:
attrKey - The name of the attribute which will be read
Returns:
The desired generic attribute value of the DO
DataObjectException

genericGetEnumAttr

public java.lang.String genericGetEnumAttr(java.lang.String attrKey)
                                    throws DataObjectException,
                                           GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
Returns:
The desired generic attribute value of the DO
DataObjectException
GenericStoreDefinitionException

genericGetDateAttr

public java.sql.Timestamp genericGetDateAttr(java.lang.String attrKey)
                                      throws DataObjectException,
                                             GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
Returns:
The desired generic attribute value of the DO
DataObjectException
GenericStoreDefinitionException

genericGetBoolAttr

public java.lang.Boolean genericGetBoolAttr(java.lang.String attrKey)
                                     throws DataObjectException,
                                            GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
Returns:
The desired generic attribute value of the DO
DataObjectException
GenericStoreDefinitionException

genericGetStringAttr

public java.lang.String genericGetStringAttr(java.lang.String attrKey)
                                      throws DataObjectException,
                                             GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
Returns:
The desired generic attribute value of the DO
DataObjectException
GenericStoreDefinitionException

genericGetNumberAttr

public java.math.BigDecimal genericGetNumberAttr(java.lang.String attrKey)
                                          throws DataObjectException,
                                                 GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
Returns:
The desired generic attribute value of the DO
DataObjectException
GenericStoreDefinitionException

genericGetBinaryAttr

public byte[] genericGetBinaryAttr(java.lang.String attrKey)
                            throws DataObjectException,
                                   GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
Returns:
The desired generic attribute value of the DO
DataObjectException
GenericStoreDefinitionException

genericSetStartStateAttr

public void genericSetStartStateAttr(java.lang.String attrKey,
                                     java.lang.String startTypeKey,
                                     java.lang.String startValueKey)
                              throws DataObjectException,
                                     StateTransitionException,
                                     GenericStoreDefinitionException
Set a certain generic state attribute with a start value

Parameters:
attrKey - The name of the attribute which will be read
startValueKey - The value which is written to the DO
startTypeKey - The type which is written to the DO
DataObjectException
StateTransitionException
GenericStoreDefinitionException

genericSetEnumAttr

public void genericSetEnumAttr(java.lang.String attrKey,
                               java.lang.String newTypeKey,
                               java.lang.String newValueKey)
                        throws DataObjectException,
                               GenericStoreDefinitionException
Set a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
newValueKey - The value which is written to the DO
newTypeKey - The type which is written to the DO
DataObjectException
GenericStoreDefinitionException

genericSetEnumAttr

public void genericSetEnumAttr(java.lang.String attrKey,
                               java.lang.String newValueKey)
                        throws DataObjectException,
                               GenericStoreDefinitionException
Set a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
DataObjectException
GenericStoreDefinitionException

genericSetStateAttr

public void genericSetStateAttr(java.lang.String attrKey,
                                java.lang.String newValueKey)
                         throws DataObjectException,
                                StateTransitionException,
                                GenericStoreDefinitionException
Set a certain generic state attribute

Parameters:
attrKey - The name of the attribute which will be read
DataObjectException
StateTransitionException
GenericStoreDefinitionException

genericSetDateAttr

public void genericSetDateAttr(java.lang.String attrKey,
                               java.sql.Timestamp newValue)
                        throws DataObjectException,
                               GenericStoreDefinitionException
Set a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
newValue - The value which is written to the DO
DataObjectException
GenericStoreDefinitionException

genericSetBoolAttr

public void genericSetBoolAttr(java.lang.String attrKey,
                               java.lang.Boolean newValue)
                        throws DataObjectException,
                               GenericStoreDefinitionException
Set a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
newValue - The value which is written to the DO
DataObjectException
GenericStoreDefinitionException

genericSetNumberAttr

public void genericSetNumberAttr(java.lang.String attrKey,
                                 java.math.BigDecimal newValue)
                          throws DataObjectException,
                                 GenericStoreDefinitionException
Set a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
newValue - The value which is written to the DO
DataObjectException
GenericStoreDefinitionException

genericSetStringAttr

public void genericSetStringAttr(java.lang.String attrKey,
                                 java.lang.String newValue)
                          throws DataObjectException,
                                 GenericStoreDefinitionException
Set a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
newValue - The value which is written to the DO
DataObjectException
GenericStoreDefinitionException

genericSetBinaryAttr

public void genericSetBinaryAttr(java.lang.String attrKey,
                                 byte[] newValue)
                          throws DataObjectException,
                                 GenericStoreDefinitionException
Set a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
newValue - The value which is written to the DO
DataObjectException
GenericStoreDefinitionException

genericSetObjectAttr

public void genericSetObjectAttr(java.lang.String attrKey,
                                 GenericStoreDO newValue)
                          throws DataObjectException,
                                 GenericStoreDefinitionException
Set a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
newValue - The value which is written to the DO
DataObjectException
GenericStoreDefinitionException

loadGenericObjectDO

public void loadGenericObjectDO()
                         throws java.sql.SQLException,
                                ObjectIdException,
                                DataObjectException,
                                QueryException
Load the object extension

java.sql.SQLException
ObjectIdException
DataObjectException
QueryException

loadGenericEnumData

public void loadGenericEnumData()
                         throws java.sql.SQLException,
                                ObjectIdException,
                                DataObjectException,
                                QueryException
Load the enum attributes

java.sql.SQLException
ObjectIdException
DataObjectException
QueryException

loadGenericDateData

public void loadGenericDateData()
                         throws java.sql.SQLException,
                                ObjectIdException,
                                DataObjectException,
                                QueryException
Load the date attributes

java.sql.SQLException
ObjectIdException
DataObjectException
QueryException

loadGenericBoolData

public void loadGenericBoolData()
                         throws java.sql.SQLException,
                                ObjectIdException,
                                DataObjectException,
                                QueryException
Load the date attributes

java.sql.SQLException
ObjectIdException
DataObjectException
QueryException

loadGenericNumberData

public void loadGenericNumberData()
                           throws java.sql.SQLException,
                                  ObjectIdException,
                                  DataObjectException,
                                  QueryException
Load the number attributes

java.sql.SQLException
ObjectIdException
DataObjectException
QueryException

loadGenericStringData

public void loadGenericStringData()
                           throws java.sql.SQLException,
                                  ObjectIdException,
                                  DataObjectException,
                                  QueryException
Load the string attributes

java.sql.SQLException
ObjectIdException
DataObjectException
QueryException

loadGenericBinaryData

public void loadGenericBinaryData()
                           throws java.sql.SQLException,
                                  ObjectIdException,
                                  DataObjectException,
                                  QueryException
Load the string attributes

java.sql.SQLException
ObjectIdException
DataObjectException
QueryException

loadGenericObjectData

public void loadGenericObjectData()
                           throws java.sql.SQLException,
                                  ObjectIdException,
                                  DataObjectException,
                                  QueryException
Load the pointer attributes

java.sql.SQLException
ObjectIdException
DataObjectException
QueryException

findAttrDef

public static AttributeDefinitionDO findAttrDef(java.lang.String attrKey)
                                         throws DataObjectException
Read a certain attribute definition

Parameters:
attrKey - The name of the attribute definition
DataObjectException

findTypeDef

public static TypeDefinitionDO findTypeDef(java.lang.String typeKey)
                                    throws DataObjectException
Read a certain object-type definition

DataObjectException

genericIsBeginState

public static boolean genericIsBeginState(java.lang.String startTypeKey,
                                          java.lang.String startValueKey)
                                   throws DataObjectException,
                                          GenericStoreDefinitionException
Check if state is a start-state

Parameters:
startTypeKey - The key of the state-machine
startValueKey - The key of the state-value
DataObjectException
GenericStoreDefinitionException

genericIsEndState

public static boolean genericIsEndState(java.lang.String endTypeKey,
                                        java.lang.String endValueKey)
                                 throws DataObjectException,
                                        GenericStoreDefinitionException
Check if state is an end-state

Parameters:
endTypeKey - The key of the state-machine
endValueKey - The key of the state-value
DataObjectException
GenericStoreDefinitionException

findBeginStates

public static java.util.Vector findBeginStates(java.lang.String enumTypeKey)
                                        throws DataObjectException,
                                               GenericStoreDefinitionException
Find the start-states for a certain statemachine (EnumTypeDef)

DataObjectException
GenericStoreDefinitionException

findEndStates

public static java.util.Vector findEndStates(java.lang.String enumTypeKey)
                                      throws DataObjectException,
                                             GenericStoreDefinitionException
Find the end-states for a certain statemachine (EnumTypeDef)

DataObjectException
GenericStoreDefinitionException

findStateTransition

public static StateTransitionDO findStateTransition(java.lang.String currentTypeKey,
                                                    java.lang.String currentStateKey,
                                                    java.lang.String newStateKey)
                                             throws DataObjectException,
                                                    GenericStoreDefinitionException
Find a defined state-transition

Parameters:
currentStateKey - The keyvalue of the current state (EnumValueDefinition)
currentTypeKey - The keyvalue of the state-machine (EnumTypeDefinition)
newStateKey - The keyvalue of the new state (EnumValueDefinition)
DataObjectException
GenericStoreDefinitionException

genericGetStateTransition

public StateTransitionDO genericGetStateTransition(java.lang.String attrKey,
                                                   java.lang.String newStateKey)
                                            throws DataObjectException,
                                                   GenericStoreDefinitionException
Find a defined state-transition

Parameters:
attrKey - The keyvalue of the attribute
newStateKey - The keyvalue of the new state (EnumValueDefinition)
DataObjectException
GenericStoreDefinitionException

findAllowedTargetStates

public static java.util.Vector findAllowedTargetStates(java.lang.String typeKey,
                                                       java.lang.String stateKey)
                                                throws DataObjectException,
                                                       GenericStoreDefinitionException
Find allowed state-transitions

Parameters:
stateKey - The keyvalue of the source state (EnumValueDefinition)
typeKey - The keyvalue of the state-machine (EnumTypeDefinition)
DataObjectException
GenericStoreDefinitionException

genericGetTargetStateAllowed

public boolean genericGetTargetStateAllowed(java.lang.String attrKey,
                                            java.lang.String targetStateKey)
                                     throws DataObjectException,
                                            GenericStoreDefinitionException
Check if state-transition is allowed

Parameters:
attrKey - The keyvalue of the Attribute
targetStateKey - The keyvalue of the state (EnumValueDefinition) which should be checked based on the current state
DataObjectException
GenericStoreDefinitionException

genericGetAllowedTargetStates

public java.util.Vector genericGetAllowedTargetStates(java.lang.String attrKey)
                                               throws DataObjectException,
                                                      GenericStoreDefinitionException
Find allowed state-transitions

Parameters:
attrKey - The keyvalue of the Attribute
DataObjectException
GenericStoreDefinitionException

findEnumTypeDef

public static EnumTypeDefinitionDO findEnumTypeDef(java.lang.String typeKey)
                                            throws DataObjectException
Find a certain enum-type definition

Parameters:
typeKey - The name of the type definition
DataObjectException

findEnumValueDef

public static EnumValueDefinitionDO findEnumValueDef(java.lang.String typeKey,
                                                     java.lang.String valueKey)
                                              throws DataObjectException
find a certain enum-value definition

Parameters:
typeKey - The name of the type definition
valueKey - The name of the type definition
DataObjectException

genericGetObjectAttr

public GenericStoreDO genericGetObjectAttr(java.lang.String attrKey)
                                    throws DataObjectException,
                                           GenericStoreDefinitionException
Read a certain generic attribute

Parameters:
attrKey - The name of the attribute which will be read
Returns:
The desired generic attribute value of the DO
DataObjectException
GenericStoreDefinitionException

save

public void save(DBTransaction dbt)
          throws java.sql.SQLException,
                 DatabaseManagerException,
                 DataObjectException,
                 RefAssertionException,
                 DBRowUpdateException,
                 QueryException
Write the generic attributes to the DB Must be called at the end of subclass save-method which an explicit transaction

Parameters:
dbt - The transaction in which the changes are written to the DB
java.sql.SQLException
DatabaseManagerException
DataObjectException
RefAssertionException
DBRowUpdateException
QueryException

save

public void save()
          throws java.sql.SQLException,
                 DatabaseManagerException,
                 DataObjectException,
                 RefAssertionException,
                 DBRowUpdateException,
                 QueryException
Write the generic attributes to the DB

java.sql.SQLException
DatabaseManagerException
DataObjectException
RefAssertionException
DBRowUpdateException
QueryException

delete

public void delete(DBTransaction dbt)
            throws java.sql.SQLException,
                   DatabaseManagerException,
                   DataObjectException,
                   RefAssertionException,
                   DBRowUpdateException,
                   QueryException
Delete all generic attributes together with the DO Must be called at the beginning of the subclass-delete methid with an explicit transaction

Specified by:
delete in class SecureDO
Parameters:
dbt - The transaction in which the delete is performed in the DB
Throws:
DatabaseManagerException - if a Transaction can not be created.
DBRowUpdateException - if a version error occurs.
java.sql.SQLException - if any SQL errors occur.
RefAssertionException - thrown by okTo method.
DataObjectException
QueryException

delete

public void delete()
            throws java.sql.SQLException,
                   DatabaseManagerException,
                   DataObjectException,
                   RefAssertionException,
                   DBRowUpdateException,
                   QueryException
Delete all generic attributes

Specified by:
delete in class SecureDO
Throws:
DatabaseManagerException - if a Transaction can not be created.
java.sql.SQLException - if any SQL errors occur.
RefAssertionException - thrown by okTo method.
DataObjectException
DBRowUpdateException
QueryException

genericGetAllEnumTypeAttrs

public java.util.TreeMap genericGetAllEnumTypeAttrs()
                                             throws DataObjectException
Get all generic enum attributes types

Returns:
All generic name/value pairs
DataObjectException

genericGetAllEnumAttrs

public java.util.TreeMap genericGetAllEnumAttrs()
                                         throws DataObjectException
Get all generic enum attributes

Returns:
All generic name/value pairs
DataObjectException

genericGetAllDateAttrs

public java.util.TreeMap genericGetAllDateAttrs()
                                         throws DataObjectException
Get all generic date attributes

Returns:
All generic name/value pairs
DataObjectException

genericGetAllBoolAttrs

public java.util.TreeMap genericGetAllBoolAttrs()
                                         throws DataObjectException
Get all generic bool attributes

Returns:
All generic name/value pairs
DataObjectException

genericGetAllNumberAttrs

public java.util.TreeMap genericGetAllNumberAttrs()
                                           throws DataObjectException
Get all generic number attributes

Returns:
All generic name/value pairs
DataObjectException

genericGetAllStringAttrs

public java.util.TreeMap genericGetAllStringAttrs()
                                           throws DataObjectException
Get all generic string attributes

Returns:
All generic name/value pairs
DataObjectException

genericGetAllBinaryAttrs

public java.util.TreeMap genericGetAllBinaryAttrs()
                                           throws DataObjectException
Get all generic string attributes

Returns:
All generic name/value pairs
DataObjectException

genericGetAllObjectAttrs

public java.util.TreeMap genericGetAllObjectAttrs()
                                           throws DataObjectException
Get all generic pointer attributes

Returns:
All generic name/value pairs
DataObjectException

genericGetAllEnumTypeAttrs

public java.util.TreeMap genericGetAllEnumTypeAttrs(User usr)
                                             throws DataObjectException,
                                                    AccessEvalException,
                                                    GenericStoreDefinitionException
Get all generic enum attributes types

Returns:
All generic name/value pairs
DataObjectException
AccessEvalException
GenericStoreDefinitionException

genericGetAllEnumAttrs

public java.util.TreeMap genericGetAllEnumAttrs(User usr)
                                         throws DataObjectException,
                                                AccessEvalException,
                                                GenericStoreDefinitionException
Get all generic enum attributes

Returns:
All generic name/value pairs
DataObjectException
AccessEvalException
GenericStoreDefinitionException

genericGetAllDateAttrs

public java.util.TreeMap genericGetAllDateAttrs(User usr)
                                         throws DataObjectException,
                                                AccessEvalException,
                                                GenericStoreDefinitionException
Get all generic date attributes

Returns:
All generic name/value pairs
DataObjectException
AccessEvalException
GenericStoreDefinitionException

genericGetAllBoolAttrs

public java.util.TreeMap genericGetAllBoolAttrs(User usr)
                                         throws DataObjectException,
                                                AccessEvalException,
                                                GenericStoreDefinitionException
Get all generic bool attributes

Returns:
All generic name/value pairs
DataObjectException
AccessEvalException
GenericStoreDefinitionException

genericGetAllNumberAttrs

public java.util.TreeMap genericGetAllNumberAttrs(User usr)
                                           throws DataObjectException,
                                                  AccessEvalException,
                                                  GenericStoreDefinitionException
Get all generic number attributes

Returns:
All generic name/value pairs
DataObjectException
AccessEvalException
GenericStoreDefinitionException

genericGetAllStringAttrs

public java.util.TreeMap genericGetAllStringAttrs(User usr)
                                           throws DataObjectException,
                                                  AccessEvalException,
                                                  GenericStoreDefinitionException
Get all generic string attributes

Returns:
All generic name/value pairs
DataObjectException
AccessEvalException
GenericStoreDefinitionException

genericGetAllByteAttrs

public java.util.TreeMap genericGetAllByteAttrs(User usr)
                                         throws DataObjectException,
                                                AccessEvalException,
                                                GenericStoreDefinitionException
Get all generic string attributes

Returns:
All generic name/value pairs
DataObjectException
AccessEvalException
GenericStoreDefinitionException

genericGetAllObjectAttrs

public java.util.TreeMap genericGetAllObjectAttrs(User usr)
                                           throws DataObjectException,
                                                  AccessEvalException,
                                                  GenericStoreDefinitionException
Get all generic pointer attributes

Returns:
All generic name/value pairs
DataObjectException
AccessEvalException
GenericStoreDefinitionException

checkAttrDefinition

public static void checkAttrDefinition(java.lang.String attrKey)
                                throws DataObjectException,
                                       GenericStoreDefinitionException
Check whether a certain Attribute-Definition exists

Parameters:
attrKey - The key of the attribute definition
DataObjectException
GenericStoreDefinitionException

checkEnumValueDefinition

public static void checkEnumValueDefinition(java.lang.String typeKey,
                                            java.lang.String valueKey)
                                     throws DataObjectException,
                                            GenericStoreDefinitionException
Check whether a certain EnumValue-Definition exists

Parameters:
typeKey - The type of the EnumValue
valueKey - The key of the EnumValue
DataObjectException
GenericStoreDefinitionException

checkEnumTypeDefinition

public static void checkEnumTypeDefinition(java.lang.String typeKey)
                                    throws DataObjectException,
                                           GenericStoreDefinitionException
Check whether a certain EnumType-Definition exists

Parameters:
typeKey - The key of the EnumType definition
DataObjectException
GenericStoreDefinitionException

checkTypeDefinition

public static void checkTypeDefinition(java.lang.String key)
                                throws DataObjectException,
                                       GenericStoreDefinitionException
Check whether a certain Type-Definition exists

DataObjectException
GenericStoreDefinitionException

Enhydra 5.1 API