|
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.AttributeStringValueDO
Data core class, used to set, retrieve the AttributeStringValueDO information.
Field Summary | |
static RDBColumn |
ATTRIBUTEDEFINITIONOID
|
static RDBColumn |
GENERICOBJECTOID
|
protected static boolean |
isView
|
static RDBColumn |
PrimaryKey
static final RDBColumn PrimaryKey for use with QueryBuilder. |
static RDBColumn |
STRINGVALUE
|
static int |
STRINGVALUE_MaxLength
|
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 |
AttributeStringValueDO()
Protected constructor. |
protected |
AttributeStringValueDO(boolean is_view)
Protected constructor. |
protected |
AttributeStringValueDO(ObjectId id)
Protected constructor used by createExisting(ObjectId) above. |
protected |
AttributeStringValueDO(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 |
assertDOGetAttrGENERICOBJECTOIDAccess(User usr)
Ensure that the given user is allowed to read the attribute |
void |
assertDOGetAttrSTRINGVALUEAccess(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 |
assertDOSetAttrGENERICOBJECTOIDAccess(GenericObjectDO GENERICOBJECTOID,
User usr)
Ensure that the given user is allowed to update the attribute |
void |
assertDOSetAttrSTRINGVALUEAccess(java.lang.String STRINGVALUE,
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 AttributeStringValueDO |
createCopy(AttributeStringValueDataStruct data)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeStringValueDO |
createCopy(AttributeStringValueDO orig)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeStringValueDO |
createCopy(AttributeStringValueDO orig,
User usr)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static AttributeStringValueDO |
createExisting(java.math.BigDecimal bd)
createExisting( BigDecimal ) Factory method creates a AttributeStringValueDO object by searching for it in the database using the passed BigDecimal value as the primary key. |
static AttributeStringValueDO |
createExisting(java.math.BigDecimal bd,
User usr)
createExisting( BigDecimal ) Factory method creates a AttributeStringValueDO object by searching for it in the database using the passed BigDecimal value as the primary key. |
protected static AttributeStringValueDO |
createExisting(ObjectId id)
createExisting( ObjectId ) Factory method creates a AttributeStringValueDO object by searching for it in the database using the passed ObjectID value as the primary key. |
protected static AttributeStringValueDO |
createExisting(RDBColumnValue pk)
createExisting( RDBColumnValue ) Factory method creates a AttributeStringValueDO object by searching for it in the database using the passed AttributeStringValueDO.PrimaryKey. |
protected static AttributeStringValueDO |
createExisting(RDBRow row)
createExisting( RDBRow ) Factory method creates a AttributeStringValueDO object by searching for it in the database using the AttributeStringValueDO.PrimaryKey value in the passed RDBRow. |
protected static AttributeStringValueDO |
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 AttributeStringValueDO |
createExisting(java.lang.String handle)
The createExisting method is used to create a AttributeStringValueDO
from a string handle. |
static AttributeStringValueDO |
createExisting(java.lang.String handle,
User usr)
The createExisting method is used to create a AttributeStringValueDO
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 AttributeStringValueDO |
createVirgin()
createVirgin() Creates a DO that has no ObjectId or data. |
static AttributeStringValueDO |
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 ATTRIBUTESTRINGVALUE |
AttributeDefinitionDO |
getATTRIBUTEDEFINITIONOID(User usr)
Get ATTRIBUTEDEFINITIONOID of the ATTRIBUTESTRINGVALUE |
java.sql.PreparedStatement |
getDeleteStatement(DBConnection conn)
Prepares the statement used to delete this object from the database. |
GenericObjectDO |
getGENERICOBJECTOID()
Get GENERICOBJECTOID of the ATTRIBUTESTRINGVALUE |
GenericObjectDO |
getGENERICOBJECTOID(User usr)
Get GENERICOBJECTOID of the ATTRIBUTESTRINGVALUE |
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 |
getSTRINGVALUE()
Get STRINGVALUE of the ATTRIBUTESTRINGVALUE |
java.lang.String |
getSTRINGVALUE(User usr)
Get STRINGVALUE of the ATTRIBUTESTRINGVALUE |
java.lang.String |
getTableName()
Return ATTRIBUTESTRINGVALUE as the name of the table in the database which contains AttributeStringValueDO 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 |
hasDOGetAttrGENERICOBJECTOIDAccess(User usr)
Check whether the given user is allowed to read the attribute |
boolean |
hasDOGetAttrSTRINGVALUEAccess(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 |
hasDOGetDOValueGENERICOBJECTOIDAccess(User usr)
Check whether the given user is allowed to read object in a pointer attribute |
boolean |
hasDOGetDOValueSTRINGVALUEAccess(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 |
hasDOSetAttrGENERICOBJECTOIDAccess(GenericObjectDO GENERICOBJECTOID,
User usr)
Check whether the given user is allowed to update the attribute |
boolean |
hasDOSetAttrSTRINGVALUEAccess(java.lang.String STRINGVALUE,
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(AttributeStringValueDO 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 AttributeStringValueDO. |
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 AttributeStringValueDO. |
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 ATTRIBUTESTRINGVALUE |
void |
setATTRIBUTEDEFINITIONOID(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID,
User usr)
Set ATTRIBUTEDEFINITIONOID of the ATTRIBUTESTRINGVALUE |
void |
setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID)
Set GENERICOBJECTOID of the ATTRIBUTESTRINGVALUE |
void |
setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID,
User usr)
Set GENERICOBJECTOID of the ATTRIBUTESTRINGVALUE |
void |
setSTRINGVALUE(java.lang.String STRINGVALUE)
Set STRINGVALUE of the ATTRIBUTESTRINGVALUE |
void |
setSTRINGVALUE(java.lang.String STRINGVALUE,
User usr)
Set STRINGVALUE of the ATTRIBUTESTRINGVALUE |
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 STRINGVALUE
public static final int STRINGVALUE_MaxLength
public static final RDBColumn GENERICOBJECTOID
Constructor Detail |
protected AttributeStringValueDO(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 AttributeStringValueDO() 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 AttributeStringValueDO(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 AttributeStringValueDO(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 AttributeStringValueDO 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 AttributeStringValueDO 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 AttributeStringValueDO 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 AttributeStringValueDO 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 AttributeStringValueDO createExisting(java.lang.String handle)
AttributeStringValueDO
from a string handle.
public static AttributeStringValueDO createExisting(java.lang.String handle, User usr) throws AccessException
AttributeStringValueDO
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 AttributeStringValueDO 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 AttributeStringValueDO 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 AttributeStringValueDO createExisting(RDBRow row) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
DataObjectException
- If the RDBRow does not contain a AttributeStringValueDO.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 AttributeStringValueDO createExisting(RDBColumnValue pk) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
DataObjectException
- If the RDBColumnValue does not contain a AttributeStringValueDO.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 AttributeStringValueDO createCopy(AttributeStringValueDataStruct 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 AttributeStringValueDO createCopy(AttributeStringValueDO 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 AttributeStringValueDO createCopy(AttributeStringValueDO 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(AttributeStringValueDO 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 AttributeStringValueDOI
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 AttributeStringValueDOI
ATTRIBUTEDEFINITIONOID
- of the ATTRIBUTESTRINGVALUE
DataObjectException
- If the object is not found in the database.public void setATTRIBUTEDEFINITIONOID(AttributeDefinitionDO ATTRIBUTEDEFINITIONOID, User usr) throws DataObjectException, AccessException
ATTRIBUTEDEFINITIONOID
- of the ATTRIBUTESTRINGVALUEusr
- 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 ATTRIBUTESTRINGVALUEusr
- 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 ATTRIBUTESTRINGVALUEusr
- The user for security check
AccessEvalException
public java.lang.String getSTRINGVALUE() throws DataObjectException
getSTRINGVALUE
in interface AttributeStringValueDOI
DataObjectException
- If the object is not found in the database.public java.lang.String getSTRINGVALUE(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 assertDOGetAttrSTRINGVALUEAccess(User usr) throws AccessException
usr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOGetAttrSTRINGVALUEAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public boolean hasDOGetDOValueSTRINGVALUEAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public void setSTRINGVALUE(java.lang.String STRINGVALUE) throws DataObjectException
setSTRINGVALUE
in interface AttributeStringValueDOI
STRINGVALUE
- of the ATTRIBUTESTRINGVALUE
DataObjectException
- If the object is not found in the database.public void setSTRINGVALUE(java.lang.String STRINGVALUE, User usr) throws DataObjectException, AccessException
STRINGVALUE
- of the ATTRIBUTESTRINGVALUEusr
- 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 assertDOSetAttrSTRINGVALUEAccess(java.lang.String STRINGVALUE, User usr) throws AccessException
STRINGVALUE
- of the ATTRIBUTESTRINGVALUEusr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOSetAttrSTRINGVALUEAccess(java.lang.String STRINGVALUE, User usr) throws AccessEvalException
STRINGVALUE
- of the ATTRIBUTESTRINGVALUEusr
- The user for security check
AccessEvalException
public GenericObjectDO getGENERICOBJECTOID() throws DataObjectException
getGENERICOBJECTOID
in interface AttributeStringValueDOI
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 AttributeStringValueDOI
GENERICOBJECTOID
- of the ATTRIBUTESTRINGVALUE
DataObjectException
- If the object is not found in the database.public void setGENERICOBJECTOID(GenericObjectDO GENERICOBJECTOID, User usr) throws DataObjectException, AccessException
GENERICOBJECTOID
- of the ATTRIBUTESTRINGVALUEusr
- 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 ATTRIBUTESTRINGVALUEusr
- 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 ATTRIBUTESTRINGVALUEusr
- 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 AttributeStringValueDOI
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 AttributeStringValueDOI
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 AttributeStringValueDOI
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 AttributeStringValueDOI
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 AttributeStringValueDOI
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 AttributeStringValueDOI
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 |