|
DODS 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.AttributeBinaryValueDO
Data core class, used to set, retrieve the AttributeBinaryValueDO information.
Field Summary | |
static RDBColumn |
ATTRIBUTEDEFINITIONOID
|
static RDBColumn |
BINARYVALUE
|
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 |
AttributeBinaryValueDO()
Protected constructor. |
protected |
AttributeBinaryValueDO(boolean is_view)
Protected constructor. |
protected |
AttributeBinaryValueDO(ObjectId id)
Protected constructor used by createExisting(ObjectId) above. |
protected |
AttributeBinaryValueDO(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 |
assertDOGetAttrBINARYVALUEAccess(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 |
assertDOSetAttrBINARYVALUEAccess(byte[] BINARYVALUE,
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 AttributeBinaryValueDO |
createCopy(AttributeBinaryValueDataStruct data)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeBinaryValueDO |
createCopy(AttributeBinaryValueDO orig)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeBinaryValueDO |
createCopy(AttributeBinaryValueDO orig,
User usr)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeBinaryValueDO |
createExisting(java.math.BigDecimal bd)
createExisting( BigDecimal ) Factory method creates a AttributeBinaryValueDO object by searching for it in the database using the passed BigDecimal value as the primary key. |
static AttributeBinaryValueDO |
createExisting(java.math.BigDecimal bd,
User usr)
createExisting( BigDecimal ) Factory method creates a AttributeBinaryValueDO object by searching for it in the database using the passed BigDecimal value as the primary key. |
protected static AttributeBinaryValueDO |
createExisting(ObjectId id)
createExisting( ObjectId ) Factory method creates a AttributeBinaryValueDO object by searching for it in the database using the passed ObjectID value as the primary key. |
protected static AttributeBinaryValueDO |
createExisting(RDBColumnValue pk)
createExisting( RDBColumnValue ) Factory method creates a AttributeBinaryValueDO object by searching for it in the database using the passed AttributeBinaryValueDO.PrimaryKey. |
protected static AttributeBinaryValueDO |
createExisting(RDBRow row)
createExisting( RDBRow ) Factory method creates a AttributeBinaryValueDO object by searching for it in the database using the AttributeBinaryValueDO.PrimaryKey value in the passed RDBRow. |
protected static AttributeBinaryValueDO |
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 AttributeBinaryValueDO |
createExisting(java.lang.String handle)
The createExisting method is used to create a AttributeBinaryValueDO
from a string handle. |
static AttributeBinaryValueDO |
createExisting(java.lang.String handle,
User usr)
The createExisting method is used to create a AttributeBinaryValueDO
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 AttributeBinaryValueDO |
createVirgin()
createVirgin() Creates a DO that has no ObjectId or data. |
static AttributeBinaryValueDO |
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 ATTRIBUTEBINARYVALUE |
AttributeDefinitionDO |
getATTRIBUTEDEFINITIONOID(User usr)
Get ATTRIBUTEDEFINITIONOID of the ATTRIBUTEBINARYVALUE |
byte[] |
getBINARYVALUE()
Get BINARYVALUE of the ATTRIBUTEBINARYVALUE |
byte[] |
getBINARYVALUE(User usr)
Get BINARYVALUE of the ATTRIBUTEBINARYVALUE |
java.sql.PreparedStatement |
getDeleteStatement(DBConnection conn)
Prepares the statement used to delete this object from the database. |
GenericObjectDO |
getGENERICOBJECTOID()
Get GENERICOBJECTOID of the ATTRIBUTEBINARYVALUE |
GenericObjectDO |
getGENERICOBJECTOID(User usr)
Get GENERICOBJECTOID of the ATTRIBUTEBINARYVALUE |
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 ATTRIBUTEBINARYVALUE as the name of the table in the database which contains AttributeBinaryValueDO 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 |
hasDOGetAttrBINARYVALUEAccess(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 |
hasDOGetDOValueBINARYVALUEAccess(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 |
hasDOSetAttrBINARYVALUEAccess(byte[] BINARYVALUE,
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(AttributeBinaryValueDO 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 AttributeBinaryValueDO. |
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 AttributeBinaryValueDO. |
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 ATTRIBUTEBINARYVALUE |
void |
setATTRIBUTEDEFINITIONOID(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID,
User usr)
Set ATTRIBUTEDEFINITIONOID of the ATTRIBUTEBINARYVALUE |
void |
setBINARYVALUE(byte[] BINARYVALUE)
Set BINARYVALUE of the ATTRIBUTEBINARYVALUE |
void |
setBINARYVALUE(byte[] BINARYVALUE,
User usr)
Set BINARYVALUE of the ATTRIBUTEBINARYVALUE |
void |
setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID)
Set GENERICOBJECTOID of the ATTRIBUTEBINARYVALUE |
void |
setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID,
User usr)
Set GENERICOBJECTOID of the ATTRIBUTEBINARYVALUE |
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 BINARYVALUE
public static final RDBColumn GENERICOBJECTOID
Constructor Detail |
protected AttributeBinaryValueDO(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 AttributeBinaryValueDO() 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 AttributeBinaryValueDO(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 AttributeBinaryValueDO(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 AttributeBinaryValueDO 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 AttributeBinaryValueDO 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 AttributeBinaryValueDO 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 AttributeBinaryValueDO 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 AttributeBinaryValueDO createExisting(java.lang.String handle)
AttributeBinaryValueDO
from a string handle.
public static AttributeBinaryValueDO createExisting(java.lang.String handle, User usr) throws AccessException
AttributeBinaryValueDO
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 AttributeBinaryValueDO 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 AttributeBinaryValueDO 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 AttributeBinaryValueDO createExisting(RDBRow row) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
DataObjectException
- If the RDBRow does not contain a AttributeBinaryValueDO.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 AttributeBinaryValueDO createExisting(RDBColumnValue pk) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
DataObjectException
- If the RDBColumnValue does not contain a AttributeBinaryValueDO.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 AttributeBinaryValueDO createCopy(AttributeBinaryValueDataStruct 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 AttributeBinaryValueDO createCopy(AttributeBinaryValueDO 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 AttributeBinaryValueDO createCopy(AttributeBinaryValueDO 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(AttributeBinaryValueDO 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 AttributeBinaryValueDOI
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 AttributeBinaryValueDOI
ATTRIBUTEDEFINITIONOID
- of the ATTRIBUTEBINARYVALUE
DataObjectException
- If the object is not found in the database.public void setATTRIBUTEDEFINITIONOID(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID, User usr) throws DataObjectException, AccessException
ATTRIBUTEDEFINITIONOID
- of the ATTRIBUTEBINARYVALUEusr
- 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 ATTRIBUTEBINARYVALUEusr
- 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 ATTRIBUTEBINARYVALUEusr
- The user for security check
AccessEvalException
public byte[] getBINARYVALUE() throws DataObjectException
getBINARYVALUE
in interface AttributeBinaryValueDOI
DataObjectException
- If the object is not found in the database.public byte[] getBINARYVALUE(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 assertDOGetAttrBINARYVALUEAccess(User usr) throws AccessException
usr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOGetAttrBINARYVALUEAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public boolean hasDOGetDOValueBINARYVALUEAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public void setBINARYVALUE(byte[] BINARYVALUE) throws DataObjectException
setBINARYVALUE
in interface AttributeBinaryValueDOI
BINARYVALUE
- of the ATTRIBUTEBINARYVALUE
DataObjectException
- If the object is not found in the database.public void setBINARYVALUE(byte[] BINARYVALUE, User usr) throws DataObjectException, AccessException
BINARYVALUE
- of the ATTRIBUTEBINARYVALUEusr
- 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 assertDOSetAttrBINARYVALUEAccess(byte[] BINARYVALUE, User usr) throws AccessException
BINARYVALUE
- of the ATTRIBUTEBINARYVALUEusr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOSetAttrBINARYVALUEAccess(byte[] BINARYVALUE, User usr) throws AccessEvalException
BINARYVALUE
- of the ATTRIBUTEBINARYVALUEusr
- The user for security check
AccessEvalException
public GenericObjectDO getGENERICOBJECTOID() throws DataObjectException
getGENERICOBJECTOID
in interface AttributeBinaryValueDOI
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 AttributeBinaryValueDOI
GENERICOBJECTOID
- of the ATTRIBUTEBINARYVALUE
DataObjectException
- If the object is not found in the database.public void setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID, User usr) throws DataObjectException, AccessException
GENERICOBJECTOID
- of the ATTRIBUTEBINARYVALUEusr
- 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 ATTRIBUTEBINARYVALUEusr
- 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 ATTRIBUTEBINARYVALUEusr
- 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 AttributeBinaryValueDOI
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 AttributeBinaryValueDOI
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 AttributeBinaryValueDOI
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 AttributeBinaryValueDOI
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 AttributeBinaryValueDOI
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 AttributeBinaryValueDOI
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
|
DODS 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |