|
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.AttributeBoolValueDO
Data core class, used to set, retrieve the AttributeBoolValueDO information.
Field Summary | |
static RDBColumn |
ATTRIBUTEDEFINITIONOID
|
static RDBColumn |
BOOLVALUE
|
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 |
AttributeBoolValueDO()
Protected constructor. |
protected |
AttributeBoolValueDO(boolean is_view)
Protected constructor. |
protected |
AttributeBoolValueDO(ObjectId id)
Protected constructor used by createExisting(ObjectId) above. |
protected |
AttributeBoolValueDO(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 |
assertDOGetAttrBOOLVALUEAccess(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 |
assertDOSetAttrBOOLVALUEAccess(boolean BOOLVALUE,
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 AttributeBoolValueDO |
createCopy(AttributeBoolValueDataStruct data)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeBoolValueDO |
createCopy(AttributeBoolValueDO orig)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeBoolValueDO |
createCopy(AttributeBoolValueDO orig,
User usr)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeBoolValueDO |
createExisting(java.math.BigDecimal bd)
createExisting( BigDecimal ) Factory method creates a AttributeBoolValueDO object by searching for it in the database using the passed BigDecimal value as the primary key. |
static AttributeBoolValueDO |
createExisting(java.math.BigDecimal bd,
User usr)
createExisting( BigDecimal ) Factory method creates a AttributeBoolValueDO object by searching for it in the database using the passed BigDecimal value as the primary key. |
protected static AttributeBoolValueDO |
createExisting(ObjectId id)
createExisting( ObjectId ) Factory method creates a AttributeBoolValueDO object by searching for it in the database using the passed ObjectID value as the primary key. |
protected static AttributeBoolValueDO |
createExisting(RDBColumnValue pk)
createExisting( RDBColumnValue ) Factory method creates a AttributeBoolValueDO object by searching for it in the database using the passed AttributeBoolValueDO.PrimaryKey. |
protected static AttributeBoolValueDO |
createExisting(RDBRow row)
createExisting( RDBRow ) Factory method creates a AttributeBoolValueDO object by searching for it in the database using the AttributeBoolValueDO.PrimaryKey value in the passed RDBRow. |
protected static AttributeBoolValueDO |
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 AttributeBoolValueDO |
createExisting(java.lang.String handle)
The createExisting method is used to create a AttributeBoolValueDO
from a string handle. |
static AttributeBoolValueDO |
createExisting(java.lang.String handle,
User usr)
The createExisting method is used to create a AttributeBoolValueDO
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 AttributeBoolValueDO |
createVirgin()
createVirgin() Creates a DO that has no ObjectId or data. |
static AttributeBoolValueDO |
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 ATTRIBUTEBOOLVALUE |
AttributeDefinitionDO |
getATTRIBUTEDEFINITIONOID(User usr)
Get ATTRIBUTEDEFINITIONOID of the ATTRIBUTEBOOLVALUE |
boolean |
getBOOLVALUE()
Get BOOLVALUE of the ATTRIBUTEBOOLVALUE |
boolean |
getBOOLVALUE(User usr)
Get BOOLVALUE of the ATTRIBUTEBOOLVALUE |
java.sql.PreparedStatement |
getDeleteStatement(DBConnection conn)
Prepares the statement used to delete this object from the database. |
GenericObjectDO |
getGENERICOBJECTOID()
Get GENERICOBJECTOID of the ATTRIBUTEBOOLVALUE |
GenericObjectDO |
getGENERICOBJECTOID(User usr)
Get GENERICOBJECTOID of the ATTRIBUTEBOOLVALUE |
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 ATTRIBUTEBOOLVALUE as the name of the table in the database which contains AttributeBoolValueDO 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 |
hasDOGetAttrBOOLVALUEAccess(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 |
hasDOGetDOValueBOOLVALUEAccess(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 |
hasDOSetAttrBOOLVALUEAccess(boolean BOOLVALUE,
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(AttributeBoolValueDO 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 AttributeBoolValueDO. |
protected void |
okToCommitATTRIBUTEDEFINITIONOID(AttributeDefinitionDO member)
A stub method for implementing pre-commit assertions for the ATTRIBUTEDEFINITIONOID 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 AttributeBoolValueDO. |
protected void |
okToDeleteATTRIBUTEDEFINITIONOID(AttributeDefinitionDO member)
A stub method for implementing pre-delete assertions for the ATTRIBUTEDEFINITIONOID 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 ATTRIBUTEBOOLVALUE |
void |
setATTRIBUTEDEFINITIONOID(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID,
User usr)
Set ATTRIBUTEDEFINITIONOID of the ATTRIBUTEBOOLVALUE |
void |
setBOOLVALUE(boolean BOOLVALUE)
Set BOOLVALUE of the ATTRIBUTEBOOLVALUE |
void |
setBOOLVALUE(boolean BOOLVALUE,
User usr)
Set BOOLVALUE of the ATTRIBUTEBOOLVALUE |
void |
setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID)
Set GENERICOBJECTOID of the ATTRIBUTEBOOLVALUE |
void |
setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID,
User usr)
Set GENERICOBJECTOID of the ATTRIBUTEBOOLVALUE |
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 ATTRIBUTEDEFINITIONOID
public static final RDBColumn BOOLVALUE
public static final RDBColumn GENERICOBJECTOID
Constructor Detail |
protected AttributeBoolValueDO(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 AttributeBoolValueDO() 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 AttributeBoolValueDO(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 AttributeBoolValueDO(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 AttributeBoolValueDO 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 AttributeBoolValueDO 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 AttributeBoolValueDO 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 AttributeBoolValueDO 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 AttributeBoolValueDO createExisting(java.lang.String handle)
AttributeBoolValueDO
from a string handle.
public static AttributeBoolValueDO createExisting(java.lang.String handle, User usr) throws AccessException
AttributeBoolValueDO
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 AttributeBoolValueDO 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 AttributeBoolValueDO 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 AttributeBoolValueDO createExisting(RDBRow row) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
DataObjectException
- If the RDBRow does not contain a AttributeBoolValueDO.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 AttributeBoolValueDO createExisting(RDBColumnValue pk) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
DataObjectException
- If the RDBColumnValue does not contain a AttributeBoolValueDO.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 AttributeBoolValueDO createCopy(AttributeBoolValueDataStruct 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 AttributeBoolValueDO createCopy(AttributeBoolValueDO 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 AttributeBoolValueDO createCopy(AttributeBoolValueDO 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(AttributeBoolValueDO orig)
orig
- The original DO.public void makeReadOnly()
makeReadOnly
in class SecureDO
public void makeReadWrite()
makeReadWrite
in class SecureDO
public AttributeDefinitionDO getATTRIBUTEDEFINITIONOID() throws DataObjectException
getATTRIBUTEDEFINITIONOID
in interface AttributeBoolValueDOI
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 AttributeBoolValueDOI
ATTRIBUTEDEFINITIONOID
- of the ATTRIBUTEBOOLVALUE
DataObjectException
- If the object is not found in the database.public void setATTRIBUTEDEFINITIONOID(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID, User usr) throws DataObjectException, AccessException
ATTRIBUTEDEFINITIONOID
- of the ATTRIBUTEBOOLVALUEusr
- 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 ATTRIBUTEBOOLVALUEusr
- 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 ATTRIBUTEBOOLVALUEusr
- The user for security check
AccessEvalException
public boolean getBOOLVALUE() throws DataObjectException
getBOOLVALUE
in interface AttributeBoolValueDOI
DataObjectException
- If the object is not found in the database.public boolean getBOOLVALUE(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 assertDOGetAttrBOOLVALUEAccess(User usr) throws AccessException
usr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOGetAttrBOOLVALUEAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public boolean hasDOGetDOValueBOOLVALUEAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public void setBOOLVALUE(boolean BOOLVALUE) throws DataObjectException
setBOOLVALUE
in interface AttributeBoolValueDOI
BOOLVALUE
- of the ATTRIBUTEBOOLVALUE
DataObjectException
- If the object is not found in the database.public void setBOOLVALUE(boolean BOOLVALUE, User usr) throws DataObjectException, AccessException
BOOLVALUE
- of the ATTRIBUTEBOOLVALUEusr
- 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 assertDOSetAttrBOOLVALUEAccess(boolean BOOLVALUE, User usr) throws AccessException
BOOLVALUE
- of the ATTRIBUTEBOOLVALUEusr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOSetAttrBOOLVALUEAccess(boolean BOOLVALUE, User usr) throws AccessEvalException
BOOLVALUE
- of the ATTRIBUTEBOOLVALUEusr
- The user for security check
AccessEvalException
public GenericObjectDO getGENERICOBJECTOID() throws DataObjectException
getGENERICOBJECTOID
in interface AttributeBoolValueDOI
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 AttributeBoolValueDOI
GENERICOBJECTOID
- of the ATTRIBUTEBOOLVALUE
DataObjectException
- If the object is not found in the database.public void setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID, User usr) throws DataObjectException, AccessException
GENERICOBJECTOID
- of the ATTRIBUTEBOOLVALUEusr
- 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 ATTRIBUTEBOOLVALUEusr
- 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 ATTRIBUTEBOOLVALUEusr
- 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 AttributeBoolValueDOI
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 AttributeBoolValueDOI
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 AttributeBoolValueDOI
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 AttributeBoolValueDOI
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 AttributeBoolValueDOI
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 AttributeBoolValueDOI
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 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 |