|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | +--org.webdocwf.util.genericstore.data.AttributeEnumValueDO
Data core class, used to set, retrieve the AttributeEnumValueDO information.
Field Summary | |
static RDBColumn |
ATTRIBUTEDEFINITIONOID
|
static RDBColumn |
ENUMVALUEDEFINITIONOID
|
static RDBColumn |
GENERICOBJECTOID
|
protected static boolean |
isView
|
static RDBColumn |
PrimaryKey
static final RDBColumn PrimaryKey for use with QueryBuilder. |
static RDBTable |
table
static final data members name the table and columns for this DO. |
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 | |
protected |
AttributeEnumValueDO()
Protected constructor. |
protected |
AttributeEnumValueDO(boolean is_view)
Protected constructor. |
protected |
AttributeEnumValueDO(ObjectId id)
Protected constructor used by createExisting(ObjectId) above. |
protected |
AttributeEnumValueDO(java.sql.ResultSet rs)
Protected constructor. |
Method Summary | |
static void |
assertDOCreateAccess(User usr)
Ensure that the given user is allowed to create new instances |
void |
assertDOGetAttrATTRIBUTEDEFINITIONOIDAccess(User usr)
Ensure that the given user is allowed to read the attribute |
void |
assertDOGetAttrENUMVALUEDEFINITIONOIDAccess(User usr)
Ensure that the given user is allowed to read the attribute |
void |
assertDOGetAttrGENERICOBJECTOIDAccess(User usr)
Ensure that the given user is allowed to read the attribute |
void |
assertDOSetAttrATTRIBUTEDEFINITIONOIDAccess(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID,
User usr)
Ensure that the given user is allowed to update the attribute |
void |
assertDOSetAttrENUMVALUEDEFINITIONOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONOID,
User usr)
Ensure that the given user is allowed to update the attribute |
void |
assertDOSetAttrGENERICOBJECTOIDAccess(GenericObjectDO GENERICOBJECTOID,
User usr)
Ensure that the given user is allowed to update the attribute |
protected void |
checkLoad()
Load the actual DO data if necessary. |
void |
commit()
Deprecated. Use save() instead. |
void |
commit(DBTransaction dbt)
Deprecated. Use save() instead. |
static AttributeEnumValueDO |
createCopy(AttributeEnumValueDataStruct data)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeEnumValueDO |
createCopy(AttributeEnumValueDO orig)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeEnumValueDO |
createCopy(AttributeEnumValueDO orig,
User usr)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeEnumValueDO |
createExisting(java.math.BigDecimal bd)
createExisting( BigDecimal ) Factory method creates a AttributeEnumValueDO object by searching for it in the database using the passed BigDecimal value as the primary key. |
static AttributeEnumValueDO |
createExisting(java.math.BigDecimal bd,
User usr)
createExisting( BigDecimal ) Factory method creates a AttributeEnumValueDO object by searching for it in the database using the passed BigDecimal value as the primary key. |
protected static AttributeEnumValueDO |
createExisting(ObjectId id)
createExisting( ObjectId ) Factory method creates a AttributeEnumValueDO object by searching for it in the database using the passed ObjectID value as the primary key. |
protected static AttributeEnumValueDO |
createExisting(RDBColumnValue pk)
createExisting( RDBColumnValue ) Factory method creates a AttributeEnumValueDO object by searching for it in the database using the passed AttributeEnumValueDO.PrimaryKey. |
protected static AttributeEnumValueDO |
createExisting(RDBRow row)
createExisting( RDBRow ) Factory method creates a AttributeEnumValueDO object by searching for it in the database using the AttributeEnumValueDO.PrimaryKey value in the passed RDBRow. |
protected static AttributeEnumValueDO |
createExisting(java.sql.ResultSet rs)
createExisting( ResultSet ) Factory method used to create an instance of this class to represent a Data Object already existing in the database. |
static AttributeEnumValueDO |
createExisting(java.lang.String handle)
The createExisting method is used to create a AttributeEnumValueDO
from a string handle. |
static AttributeEnumValueDO |
createExisting(java.lang.String handle,
User usr)
The createExisting method is used to create a AttributeEnumValueDO
from a string handle. |
GenericStoreDO |
createForExisting(java.math.BigDecimal bd)
Create an instance for an existing row This is a strange hack for having an instance method Maybe there is a better solution ? WebDocWf extension |
static AttributeEnumValueDO |
createVirgin()
createVirgin() Creates a DO that has no ObjectId or data. |
static AttributeEnumValueDO |
createVirgin(User usr)
createVirgin() Creates a DO that has no ObjectId or data. |
void |
delete()
Deletes the DO from its table. |
void |
delete(DBTransaction dbt)
Deletes the DO from its table. |
AttributeDefinitionDO |
getATTRIBUTEDEFINITIONOID()
Get ATTRIBUTEDEFINITIONOID of the ATTRIBUTEENUMVALUE |
AttributeDefinitionDO |
getATTRIBUTEDEFINITIONOID(User usr)
Get ATTRIBUTEDEFINITIONOID of the ATTRIBUTEENUMVALUE |
java.sql.PreparedStatement |
getDeleteStatement(DBConnection conn)
Prepares the statement used to delete this object from the database. |
EnumValueDefinitionDO |
getENUMVALUEDEFINITIONOID()
Get ENUMVALUEDEFINITIONOID of the ATTRIBUTEENUMVALUE |
EnumValueDefinitionDO |
getENUMVALUEDEFINITIONOID(User usr)
Get ENUMVALUEDEFINITIONOID of the ATTRIBUTEENUMVALUE |
GenericObjectDO |
getGENERICOBJECTOID()
Get GENERICOBJECTOID of the ATTRIBUTEENUMVALUE |
GenericObjectDO |
getGENERICOBJECTOID(User usr)
Get GENERICOBJECTOID of the ATTRIBUTEENUMVALUE |
java.lang.String |
getHandle()
The methods
getHandle
hasMatchingHandle
are used by Presentation Objects that need to populate
HTML select lists with Data Objects as options. |
java.sql.PreparedStatement |
getInsertStatement(DBConnection conn)
Prepares the statement used to insert this object into the database. |
java.lang.String |
getTableName()
Return ATTRIBUTEENUMVALUE as the name of the table in the database which contains AttributeEnumValueDO objects. |
java.sql.PreparedStatement |
getUpdateStatement(DBConnection conn)
Prepares the statement used to update this object in the database. |
static boolean |
hasDOCreateAccess(User usr)
Check whether the given user is allowed to create new instances |
static boolean |
hasDOGetAccess(java.math.BigDecimal bd,
User usr)
Check whether the given user is allowed to read the DO existance Static function to be called without having the object |
static boolean |
hasDOGetAccess(java.lang.String handle,
User usr)
Check whether the given user is allowed to read the DO existance Static function to be called without having the object |
boolean |
hasDOGetAttrATTRIBUTEDEFINITIONOIDAccess(User usr)
Check whether the given user is allowed to read the attribute |
boolean |
hasDOGetAttrENUMVALUEDEFINITIONOIDAccess(User usr)
Check whether the given user is allowed to read the attribute |
boolean |
hasDOGetAttrGENERICOBJECTOIDAccess(User usr)
Check whether the given user is allowed to read the attribute |
boolean |
hasDOGetDOValueATTRIBUTEDEFINITIONOIDAccess(User usr)
Check whether the given user is allowed to read object in a pointer attribute |
boolean |
hasDOGetDOValueENUMVALUEDEFINITIONOIDAccess(User usr)
Check whether the given user is allowed to read object in a pointer attribute |
boolean |
hasDOGetDOValueGENERICOBJECTOIDAccess(User usr)
Check whether the given user is allowed to read object in a pointer attribute |
boolean |
hasDOSetAttrATTRIBUTEDEFINITIONOIDAccess(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID,
User usr)
Check whether the given user is allowed to update the attribute |
boolean |
hasDOSetAttrENUMVALUEDEFINITIONOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONOID,
User usr)
Check whether the given user is allowed to update the attribute |
boolean |
hasDOSetAttrGENERICOBJECTOIDAccess(GenericObjectDO GENERICOBJECTOID,
User usr)
Check whether the given user is allowed to update the attribute |
boolean |
hasMatchingHandle(java.lang.String handle)
hasMatchingHandle |
boolean |
isLoaded()
isLoaded() Returns true if the data for this objects has been retrieved from the database. |
boolean |
isReadOnly()
isReadOnly() Returns true if the data for this object has been marked read-only. |
void |
loadData()
loadData() Load the fields for the DO from the database. |
protected void |
makeIdentical(AttributeEnumValueDO orig)
makeIdentical() Assigns the DataStruct of an existing DO to this DO. |
void |
makeReadOnly()
makeReadOnly() Mark the object as readonly WebDocWf extension |
void |
makeReadWrite()
makeReadWrite() |
protected void |
modifyDO(DBTransaction dbt,
boolean delete)
Modifies the DO within its table. |
protected void |
modifyDO(DBTransaction dbt,
boolean delete,
boolean references)
Modifies the DO within its table. |
protected void |
okToCommit()
A stub method for implementing pre-commit assertions for this AttributeEnumValueDO. |
protected void |
okToCommitATTRIBUTEDEFINITIONOID(AttributeDefinitionDO member)
A stub method for implementing pre-commit assertions for the ATTRIBUTEDEFINITIONOID data member. |
protected void |
okToCommitENUMVALUEDEFINITIONOID(EnumValueDefinitionDO member)
A stub method for implementing pre-commit assertions for the ENUMVALUEDEFINITIONOID data member. |
protected void |
okToCommitGENERICOBJECTOID(GenericObjectDO member)
A stub method for implementing pre-commit assertions for the GENERICOBJECTOID data member. |
protected void |
okToDelete()
A stub method for implementing pre-delete assertions for this AttributeEnumValueDO. |
protected void |
okToDeleteATTRIBUTEDEFINITIONOID(AttributeDefinitionDO member)
A stub method for implementing pre-delete assertions for the ATTRIBUTEDEFINITIONOID data member. |
protected void |
okToDeleteENUMVALUEDEFINITIONOID(EnumValueDefinitionDO member)
A stub method for implementing pre-delete assertions for the ENUMVALUEDEFINITIONOID data member. |
protected void |
okToDeleteGENERICOBJECTOID(GenericObjectDO member)
A stub method for implementing pre-delete assertions for the GENERICOBJECTOID data member. |
void |
reload()
reload() Causes the DO to refresh itself from the database the next time a set or get method is called. |
void |
save()
Inserts/Updates the DO into its table. |
void |
save(boolean references)
Inserts/Updates the DO into its table. |
void |
save(DBTransaction dbt)
Inserts/Updates the DO into its table. |
void |
save(DBTransaction dbt,
boolean references)
Inserts/Updates the DO into its table. |
void |
setATTRIBUTEDEFINITIONOID(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID)
Set ATTRIBUTEDEFINITIONOID of the ATTRIBUTEENUMVALUE |
void |
setATTRIBUTEDEFINITIONOID(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID,
User usr)
Set ATTRIBUTEDEFINITIONOID of the ATTRIBUTEENUMVALUE |
void |
setENUMVALUEDEFINITIONOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONOID)
Set ENUMVALUEDEFINITIONOID of the ATTRIBUTEENUMVALUE |
void |
setENUMVALUEDEFINITIONOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONOID,
User usr)
Set ENUMVALUEDEFINITIONOID of the ATTRIBUTEENUMVALUE |
void |
setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID)
Set GENERICOBJECTOID of the ATTRIBUTEENUMVALUE |
void |
setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID,
User usr)
Set GENERICOBJECTOID of the ATTRIBUTEENUMVALUE |
java.lang.String |
toString()
|
java.lang.String |
toString(int indentCount)
|
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, getNewVersion, getOId, getOIdColumnName, getVersionColumnName, isPersistent, refresh, setNewVersion, setOIdColumnName, setPersistent, setVersion, setVersionColumnName, updateCache |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final RDBTable table
public static final RDBColumn PrimaryKey
protected static final boolean isView
public static final RDBColumn ENUMVALUEDEFINITIONOID
public static final RDBColumn ATTRIBUTEDEFINITIONOID
public static final RDBColumn GENERICOBJECTOID
Constructor Detail |
protected AttributeEnumValueDO(boolean is_view) throws ObjectIdException, DatabaseManagerException
DatabaseManagerException
- If a connection to the database cannot be established, etc.
ObjectIdException
- If an object id can't be allocated for this object.protected AttributeEnumValueDO() throws ObjectIdException, DatabaseManagerException
DatabaseManagerException
- If a connection to the database cannot be established, etc.
ObjectIdException
- If an object id can't be allocated for this object.protected AttributeEnumValueDO(ObjectId id) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
id
- The ObjectId for the object.
DataObjectException
- If the object is not found in the database.
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.
java.sql.SQLException
- Should never see this exception since GenericDO.ctor(ObjectId)
never accesses the database.protected AttributeEnumValueDO(java.sql.ResultSet rs) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
rs
- Result set from which to obtain product data.
DataObjectException
- If the object is not found in the database.
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.
java.sql.SQLException
- If the database rejects the SQL generated to retrieve data
for this object, or if the table contains a bad foreign key, etc.Method Detail |
public java.lang.String getTableName()
getTableName
in class CoreDO
CoreDO
public boolean isReadOnly()
isReadOnly
in class SecureDO
public boolean isLoaded()
public void loadData() throws java.sql.SQLException, ObjectIdException, DataObjectException
ObjectIdException
- If an object id can't be allocated for this object.
DataObjectException
- If the object is not found in the database.
java.sql.SQLException
- If the database rejects the SQL generated to retrieve data
for this object, or if the table contains a bad foreign key, etc.protected void checkLoad() throws DataObjectException
checkLoad
in class SecureDO
DataObjectException
- If a data access error occurs.public static AttributeEnumValueDO createVirgin() throws DatabaseManagerException, ObjectIdException
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.public static AttributeEnumValueDO createVirgin(User usr) throws DatabaseManagerException, ObjectIdException, AccessException
usr
- The user for security check
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.
AccessException
- The user is not allowed to create new instances
WebDocWf extensionpublic static void assertDOCreateAccess(User usr) throws AccessException
usr
- The user for security check
AccessException
- The user is not allowed to create new instances
WebDocWf extensionpublic static boolean hasDOCreateAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public GenericStoreDO createForExisting(java.math.BigDecimal bd) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
createForExisting
in class GenericStoreDO
bd
- ObjectID as BigDecimal of the object which must be read from the DB
java.sql.SQLException
ObjectIdException
DataObjectException
DatabaseManagerException
public static AttributeEnumValueDO createExisting(java.math.BigDecimal bd) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
bd
- The BigDecimal representation of the ObjectId for the object.
DataObjectException
- If the object is not found in the database.
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.
java.sql.SQLException
- If the database rejects the SQL generated to retrieve data
for this object, or if the table contains a bad foreign key, etc.public static AttributeEnumValueDO createExisting(java.math.BigDecimal bd, User usr) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException, AccessException
bd
- The BigDecimal representation of the ObjectId for the object.usr
- The user for security check
DataObjectException
- If the object is not found in the database.
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.
java.sql.SQLException
- If the database rejects the SQL generated to retrieve data
for this object, or if the table contains a bad foreign key, etc.
AccessException
- The user is not allowed to read the instance existance
WebDocWf extensionpublic static boolean hasDOGetAccess(java.math.BigDecimal bd, User usr) throws AccessEvalException
bd
- The BigDecimal representation of the ObjectId for the object.usr
- The user for security check
AccessEvalException
public static AttributeEnumValueDO createExisting(java.lang.String handle)
AttributeEnumValueDO
from a string handle.
public static AttributeEnumValueDO createExisting(java.lang.String handle, User usr) throws AccessException
AttributeEnumValueDO
from a string handle.
WebDocWf extension
AccessException
public static boolean hasDOGetAccess(java.lang.String handle, User usr) throws AccessEvalException
handle
- The string representation of the ObjectId for the object.usr
- The user for security check
AccessEvalException
protected static AttributeEnumValueDO createExisting(ObjectId id) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
id
- The ObjectId for the object.
DataObjectException
- If the object is not found in the database.
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.
java.sql.SQLException
- If the database rejects the SQL generated to retrieve data
for this object, or if the table contains a bad foreign key, etc.protected static AttributeEnumValueDO createExisting(java.sql.ResultSet rs) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
rs
- The ResultSet returned by the Query class for
an existing Data Object stored in the database.
DataObjectException
- If the object is not found in the database.
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.
java.sql.SQLException
- If the database rejects the SQL generated to retrieve data
for this object, or if the table contains a bad foreign key, etc.protected static AttributeEnumValueDO createExisting(RDBRow row) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
DataObjectException
- If the RDBRow does not contain a AttributeEnumValueDO.PrimaryKey.
If the object is not found in the database.
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.
java.sql.SQLException
- If the database rejects the SQL generated to retrieve data
for this object, or if the table contains a bad foreign key, etc.protected static AttributeEnumValueDO createExisting(RDBColumnValue pk) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
DataObjectException
- If the RDBColumnValue does not contain a AttributeEnumValueDO.PrimaryKey.
If the object is not found in the database.
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.
java.sql.SQLException
- If the database rejects the SQL generated to retrieve data
for this object, or if the table contains a bad foreign key, etc.public static AttributeEnumValueDO createCopy(AttributeEnumValueDataStruct data) throws DatabaseManagerException, ObjectIdException
data
- The data struct to copy values from.
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.public static AttributeEnumValueDO createCopy(AttributeEnumValueDO orig) throws DatabaseManagerException, ObjectIdException
orig
- The original DO to copy.
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.public static AttributeEnumValueDO createCopy(AttributeEnumValueDO orig, User usr) throws DatabaseManagerException, ObjectIdException, AccessException
orig
- The original DO to copy.usr
- The user for security check
ObjectIdException
- If an object id can't be allocated for this object.
DatabaseManagerException
- If a connection to the database cannot be established, etc.
AccessException
- The user is not allowed to make a copy
WebDocWf extensionpublic void reload()
public java.lang.String getHandle() throws DatabaseManagerException
getHandle
hasMatchingHandle
are used by Presentation Objects that need to populate
HTML select lists with Data Objects as options.
The getHandle()
method is used
to set the value for each option,
and the hasMatchingHandle()
methods are used to lookup the Data Object when the selection has
been made.
- Specified by:
getHandle
in class SecureDO
- Returns:
- id of this DO as a string
If an object id can't be allocated for this object.
- Throws:
DatabaseManagerException
- If a connection to the database cannot be established, etc.
public boolean hasMatchingHandle(java.lang.String handle)
hasMatchingHandle
in class SecureDO
handle
- String
version of DO id
protected void makeIdentical(AttributeEnumValueDO orig)
orig
- The original DO.public void makeReadOnly()
makeReadOnly
in class SecureDO
public void makeReadWrite()
makeReadWrite
in class SecureDO
public EnumValueDefinitionDO getENUMVALUEDEFINITIONOID() throws DataObjectException
getENUMVALUEDEFINITIONOID
in interface AttributeEnumValueDOI
DataObjectException
- If the object is not found in the database.public EnumValueDefinitionDO getENUMVALUEDEFINITIONOID(User usr) throws DataObjectException, AccessException
usr
- The user for security check
DataObjectException
- If the object is not found in the database.
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic void assertDOGetAttrENUMVALUEDEFINITIONOIDAccess(User usr) throws AccessException
usr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOGetAttrENUMVALUEDEFINITIONOIDAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public boolean hasDOGetDOValueENUMVALUEDEFINITIONOIDAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public void setENUMVALUEDEFINITIONOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONOID) throws DataObjectException
setENUMVALUEDEFINITIONOID
in interface AttributeEnumValueDOI
ENUMVALUEDEFINITIONOID
- of the ATTRIBUTEENUMVALUE
DataObjectException
- If the object is not found in the database.public void setENUMVALUEDEFINITIONOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONOID, User usr) throws DataObjectException, AccessException
ENUMVALUEDEFINITIONOID
- of the ATTRIBUTEENUMVALUEusr
- The user for security check
DataObjectException
- If the object is not found in the database.
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic void assertDOSetAttrENUMVALUEDEFINITIONOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONOID, User usr) throws AccessException
ENUMVALUEDEFINITIONOID
- of the ATTRIBUTEENUMVALUEusr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOSetAttrENUMVALUEDEFINITIONOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONOID, User usr) throws AccessEvalException
ENUMVALUEDEFINITIONOID
- of the ATTRIBUTEENUMVALUEusr
- The user for security check
AccessEvalException
public AttributeDefinitionDO getATTRIBUTEDEFINITIONOID() throws DataObjectException
getATTRIBUTEDEFINITIONOID
in interface AttributeEnumValueDOI
DataObjectException
- If the object is not found in the database.public AttributeDefinitionDO getATTRIBUTEDEFINITIONOID(User usr) throws DataObjectException, AccessException
usr
- The user for security check
DataObjectException
- If the object is not found in the database.
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic void assertDOGetAttrATTRIBUTEDEFINITIONOIDAccess(User usr) throws AccessException
usr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOGetAttrATTRIBUTEDEFINITIONOIDAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public boolean hasDOGetDOValueATTRIBUTEDEFINITIONOIDAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public void setATTRIBUTEDEFINITIONOID(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID) throws DataObjectException
setATTRIBUTEDEFINITIONOID
in interface AttributeEnumValueDOI
ATTRIBUTEDEFINITIONOID
- of the ATTRIBUTEENUMVALUE
DataObjectException
- If the object is not found in the database.public void setATTRIBUTEDEFINITIONOID(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID, User usr) throws DataObjectException, AccessException
ATTRIBUTEDEFINITIONOID
- of the ATTRIBUTEENUMVALUEusr
- The user for security check
DataObjectException
- If the object is not found in the database.
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic void assertDOSetAttrATTRIBUTEDEFINITIONOIDAccess(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID, User usr) throws AccessException
ATTRIBUTEDEFINITIONOID
- of the ATTRIBUTEENUMVALUEusr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOSetAttrATTRIBUTEDEFINITIONOIDAccess(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID, User usr) throws AccessEvalException
ATTRIBUTEDEFINITIONOID
- of the ATTRIBUTEENUMVALUEusr
- The user for security check
AccessEvalException
public GenericObjectDO getGENERICOBJECTOID() throws DataObjectException
getGENERICOBJECTOID
in interface AttributeEnumValueDOI
DataObjectException
- If the object is not found in the database.public GenericObjectDO getGENERICOBJECTOID(User usr) throws DataObjectException, AccessException
usr
- The user for security check
DataObjectException
- If the object is not found in the database.
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic void assertDOGetAttrGENERICOBJECTOIDAccess(User usr) throws AccessException
usr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOGetAttrGENERICOBJECTOIDAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public boolean hasDOGetDOValueGENERICOBJECTOIDAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public void setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID) throws DataObjectException
setGENERICOBJECTOID
in interface AttributeEnumValueDOI
GENERICOBJECTOID
- of the ATTRIBUTEENUMVALUE
DataObjectException
- If the object is not found in the database.public void setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID, User usr) throws DataObjectException, AccessException
GENERICOBJECTOID
- of the ATTRIBUTEENUMVALUEusr
- The user for security check
DataObjectException
- If the object is not found in the database.
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic void assertDOSetAttrGENERICOBJECTOIDAccess(GenericObjectDO GENERICOBJECTOID, User usr) throws AccessException
GENERICOBJECTOID
- of the ATTRIBUTEENUMVALUEusr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOSetAttrGENERICOBJECTOIDAccess(GenericObjectDO GENERICOBJECTOID, User usr) throws AccessEvalException
GENERICOBJECTOID
- of the ATTRIBUTEENUMVALUEusr
- The user for security check
AccessEvalException
public java.sql.PreparedStatement getInsertStatement(DBConnection conn) throws java.sql.SQLException
getInsertStatement
in class CoreDO
conn
- the database connection.
java.sql.SQLException
- if an error occurs.public java.sql.PreparedStatement getUpdateStatement(DBConnection conn) throws java.sql.SQLException
getUpdateStatement
in class CoreDO
conn
- the database connection
java.sql.SQLException
- if an error occurs.public java.sql.PreparedStatement getDeleteStatement(DBConnection conn) throws java.sql.SQLException
getDeleteStatement
in class CoreDO
conn
- the database connection
java.sql.SQLException
- if an error occurs.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int indentCount)
toString
in class GenericDO
protected void okToCommit() throws RefAssertionException
RefAssertionException
protected void okToDelete() throws RefAssertionException
RefAssertionException
public void commit() throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
commit
in interface AttributeEnumValueDOI
DatabaseManagerException
- if a Transaction can not be created.
RefAssertionException
- thrown by okTo method.
java.sql.SQLException
- if any SQL errors occur.
DataObjectException
DBRowUpdateException
QueryException
public void save() throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
save
in interface AttributeEnumValueDOI
save
in class GenericStoreDO
DatabaseManagerException
- if a Transaction can not be created.
RefAssertionException
- thrown by okTo method.
java.sql.SQLException
- if any SQL errors occur.
WebDocWf extension
DataObjectException
DBRowUpdateException
QueryException
public void save(boolean references) throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
references
- True if references should be saved with this DO
DatabaseManagerException
- if a Transaction can not be created.
RefAssertionException
- thrown by okTo method.
java.sql.SQLException
- if any SQL errors occur.
WebDocWf extension
DataObjectException
DBRowUpdateException
QueryException
public void commit(DBTransaction dbt) throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
commit
in interface AttributeEnumValueDOI
dbt
- The transaction object to use for this operation.
DatabaseManagerException
- if a Transaction can not be created.
DBRowUpdateException
- if a version error occurs.
RefAssertionException
- thrown by okTo method.
java.sql.SQLException
- if any SQL errors occur.
DataObjectException
QueryException
public void save(DBTransaction dbt) throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
save
in interface AttributeEnumValueDOI
save
in class GenericStoreDO
dbt
- The transaction object to use for this operation.
DatabaseManagerException
- if a Transaction can not be created.
DBRowUpdateException
- if a version error occurs.
RefAssertionException
- thrown by okTo method.
java.sql.SQLException
- if any SQL errors occur.
WebDocWf extension
DataObjectException
QueryException
public void save(DBTransaction dbt, boolean references) throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
dbt
- The transaction object to use for this operation.references
- True if references of this DO should be saved
DatabaseManagerException
- if a Transaction can not be created.
DBRowUpdateException
- if a version error occurs.
RefAssertionException
- thrown by okTo method.
java.sql.SQLException
- if any SQL errors occur.
WebDocWf extension
DataObjectException
QueryException
public void delete() throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
delete
in interface AttributeEnumValueDOI
delete
in class GenericStoreDO
DatabaseManagerException
- if a Transaction can not be created.
RefAssertionException
- thrown by okTo method.
java.sql.SQLException
- if any SQL errors occur.
DataObjectException
DBRowUpdateException
QueryException
public void delete(DBTransaction dbt) throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
delete
in interface AttributeEnumValueDOI
delete
in class GenericStoreDO
dbt
- The transaction object to use for this operation.
DatabaseManagerException
- if a Transaction can not be created.
DBRowUpdateException
- if a version error occurs.
RefAssertionException
- thrown by okTo method.
java.sql.SQLException
- if any SQL errors occur.
DataObjectException
QueryException
protected void okToCommitENUMVALUEDEFINITIONOID(EnumValueDefinitionDO member) throws RefAssertionException
RefAssertionException
protected void okToDeleteENUMVALUEDEFINITIONOID(EnumValueDefinitionDO member) throws RefAssertionException
RefAssertionException
protected void okToCommitATTRIBUTEDEFINITIONOID(AttributeDefinitionDO member) throws RefAssertionException
RefAssertionException
protected void okToDeleteATTRIBUTEDEFINITIONOID(AttributeDefinitionDO member) throws RefAssertionException
RefAssertionException
protected void okToCommitGENERICOBJECTOID(GenericObjectDO member) throws RefAssertionException
RefAssertionException
protected void okToDeleteGENERICOBJECTOID(GenericObjectDO member) throws RefAssertionException
RefAssertionException
protected void modifyDO(DBTransaction dbt, boolean delete) throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
dbt
- The transaction object to use for this operation.delete
- True if doing a delete, otherwise doing insert/update.
DatabaseManagerException
- if a Transaction can not be created.
DBRowUpdateException
- if a version error occurs.
RefAssertionException
- thrown by okTo method.
java.sql.SQLException
- if any SQL errors occur.
WebDocWf extension
DataObjectException
QueryException
protected void modifyDO(DBTransaction dbt, boolean delete, boolean references) throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
dbt
- The transaction object to use for this operation.delete
- True if doing a delete, otherwise doing insert/update.references
- True if references should be saved
DatabaseManagerException
- if a Transaction can not be created.
DBRowUpdateException
- if a version error occurs.
RefAssertionException
- thrown by okTo method.
java.sql.SQLException
- if any SQL errors occur.
WebDocWf extension
DataObjectException
QueryException
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |