|
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.StateTransitionDO
Data core class, used to set, retrieve the StateTransitionDO information.
Field Summary | |
static RDBColumn |
ENUMVALUEDEFINITIONFROMOID
|
static RDBColumn |
ENUMVALUEDEFINITIONTOOID
|
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 |
StateTransitionDO()
Protected constructor. |
protected |
StateTransitionDO(boolean is_view)
Protected constructor. |
protected |
StateTransitionDO(ObjectId id)
Protected constructor used by createExisting(ObjectId) above. |
protected |
StateTransitionDO(java.sql.ResultSet rs)
Protected constructor. |
Method Summary | |
static StateTransitionDO |
addToCache(StateTransitionDO newDO)
Add DO to cache. |
static void |
assertDOCreateAccess(User usr)
Ensure that the given user is allowed to create new instances |
void |
assertDOGetAttrENUMVALUEDEFINITIONFROMOIDAccess(User usr)
Ensure that the given user is allowed to read the attribute |
void |
assertDOGetAttrENUMVALUEDEFINITIONTOOIDAccess(User usr)
Ensure that the given user is allowed to read the attribute |
void |
assertDOSetAttrENUMVALUEDEFINITIONFROMOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONFROMOID,
User usr)
Ensure that the given user is allowed to update the attribute |
void |
assertDOSetAttrENUMVALUEDEFINITIONTOOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONTOOID,
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 StateTransitionDO |
createCopy(StateTransitionDataStruct data)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static StateTransitionDO |
createCopy(StateTransitionDO orig)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static StateTransitionDO |
createCopy(StateTransitionDO orig,
User usr)
createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. |
static StateTransitionDO |
createExisting(java.math.BigDecimal bd)
createExisting( BigDecimal ) Factory method creates a StateTransitionDO object by searching for it in the database using the passed BigDecimal value as the primary key. |
static StateTransitionDO |
createExisting(java.math.BigDecimal bd,
User usr)
createExisting( BigDecimal ) Factory method creates a StateTransitionDO object by searching for it in the database using the passed BigDecimal value as the primary key. |
protected static StateTransitionDO |
createExisting(ObjectId id)
createExisting( ObjectId ) Factory method creates a StateTransitionDO object by searching for it in the database using the passed ObjectID value as the primary key. |
protected static StateTransitionDO |
createExisting(RDBColumnValue pk)
createExisting( RDBColumnValue ) Factory method creates a StateTransitionDO object by searching for it in the database using the passed StateTransitionDO.PrimaryKey. |
protected static StateTransitionDO |
createExisting(RDBRow row)
createExisting( RDBRow ) Factory method creates a StateTransitionDO object by searching for it in the database using the StateTransitionDO.PrimaryKey value in the passed RDBRow. |
protected static StateTransitionDO |
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 StateTransitionDO |
createExisting(java.lang.String handle)
The createExisting method is used to create a StateTransitionDO
from a string handle. |
static StateTransitionDO |
createExisting(java.lang.String handle,
User usr)
The createExisting method is used to create a StateTransitionDO
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 StateTransitionDO |
createVirgin()
createVirgin() Creates a DO that has no ObjectId or data. |
static StateTransitionDO |
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. |
static StateTransitionDO |
findCachedObjectByHandle(java.lang.String handle)
findCachedObjectByHandle |
static StateTransitionDO |
findCachedObjectByHandle(java.lang.String handle,
User usr)
findCachedObjectByHandle |
static java.util.Enumeration |
getCacheContents()
Retrieve contents of cache as an enumeration of DO objects. |
java.sql.PreparedStatement |
getDeleteStatement(DBConnection conn)
Prepares the statement used to delete this object from the database. |
EnumValueDefinitionDO |
getENUMVALUEDEFINITIONFROMOID()
Get ENUMVALUEDEFINITIONFROMOID of the GENERICSTATETRANSITION |
EnumValueDefinitionDO |
getENUMVALUEDEFINITIONFROMOID(User usr)
Get ENUMVALUEDEFINITIONFROMOID of the GENERICSTATETRANSITION |
EnumValueDefinitionDO |
getENUMVALUEDEFINITIONTOOID()
Get ENUMVALUEDEFINITIONTOOID of the GENERICSTATETRANSITION |
EnumValueDefinitionDO |
getENUMVALUEDEFINITIONTOOID(User usr)
Get ENUMVALUEDEFINITIONTOOID of the GENERICSTATETRANSITION |
java.lang.String |
getHandle()
The methods
getHandle
hasMatchingHandle
findCachedObjectByHandle
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 GENERICSTATETRANSITION as the name of the table in the database which contains StateTransitionDO 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 |
hasDOGetAttrENUMVALUEDEFINITIONFROMOIDAccess(User usr)
Check whether the given user is allowed to read the attribute |
boolean |
hasDOGetAttrENUMVALUEDEFINITIONTOOIDAccess(User usr)
Check whether the given user is allowed to read the attribute |
boolean |
hasDOGetDOValueENUMVALUEDEFINITIONFROMOIDAccess(User usr)
Check whether the given user is allowed to read object in a pointer attribute |
boolean |
hasDOGetDOValueENUMVALUEDEFINITIONTOOIDAccess(User usr)
Check whether the given user is allowed to read object in a pointer attribute |
boolean |
hasDOSetAttrENUMVALUEDEFINITIONFROMOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONFROMOID,
User usr)
Check whether the given user is allowed to update the attribute |
boolean |
hasDOSetAttrENUMVALUEDEFINITIONTOOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONTOOID,
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(StateTransitionDO 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 StateTransitionDO. |
protected void |
okToCommitENUMVALUEDEFINITIONFROMOID(EnumValueDefinitionDO member)
A stub method for implementing pre-commit assertions for the ENUMVALUEDEFINITIONFROMOID data member. |
protected void |
okToCommitENUMVALUEDEFINITIONTOOID(EnumValueDefinitionDO member)
A stub method for implementing pre-commit assertions for the ENUMVALUEDEFINITIONTOOID data member. |
protected void |
okToDelete()
A stub method for implementing pre-delete assertions for this StateTransitionDO. |
protected void |
okToDeleteENUMVALUEDEFINITIONFROMOID(EnumValueDefinitionDO member)
A stub method for implementing pre-delete assertions for the ENUMVALUEDEFINITIONFROMOID data member. |
protected void |
okToDeleteENUMVALUEDEFINITIONTOOID(EnumValueDefinitionDO member)
A stub method for implementing pre-delete assertions for the ENUMVALUEDEFINITIONTOOID data member. |
static void |
refreshCache()
Queries all rows in table, and for each row creates a DO instance in the cache. |
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 |
setENUMVALUEDEFINITIONFROMOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONFROMOID)
Set ENUMVALUEDEFINITIONFROMOID of the GENERICSTATETRANSITION |
void |
setENUMVALUEDEFINITIONFROMOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONFROMOID,
User usr)
Set ENUMVALUEDEFINITIONFROMOID of the GENERICSTATETRANSITION |
void |
setENUMVALUEDEFINITIONTOOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONTOOID)
Set ENUMVALUEDEFINITIONTOOID of the GENERICSTATETRANSITION |
void |
setENUMVALUEDEFINITIONTOOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONTOOID,
User usr)
Set ENUMVALUEDEFINITIONTOOID of the GENERICSTATETRANSITION |
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 ENUMVALUEDEFINITIONFROMOID
public static final RDBColumn ENUMVALUEDEFINITIONTOOID
Constructor Detail |
protected StateTransitionDO(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 StateTransitionDO() 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 StateTransitionDO(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 StateTransitionDO(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 void refreshCache() throws java.sql.SQLException, DatabaseManagerException, ObjectIdException, DataObjectException
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 StateTransitionDO addToCache(StateTransitionDO newDO)
public static java.util.Enumeration getCacheContents()
public static StateTransitionDO 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 StateTransitionDO 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 StateTransitionDO 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 StateTransitionDO 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 StateTransitionDO createExisting(java.lang.String handle)
StateTransitionDO
from a string handle.
public static StateTransitionDO createExisting(java.lang.String handle, User usr) throws AccessException
StateTransitionDO
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 StateTransitionDO 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 StateTransitionDO 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 StateTransitionDO createExisting(RDBRow row) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
DataObjectException
- If the RDBRow does not contain a StateTransitionDO.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 StateTransitionDO createExisting(RDBColumnValue pk) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
DataObjectException
- If the RDBColumnValue does not contain a StateTransitionDO.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 StateTransitionDO createCopy(StateTransitionDataStruct 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 StateTransitionDO createCopy(StateTransitionDO 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 StateTransitionDO createCopy(StateTransitionDO 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
findCachedObjectByHandle
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()
and findCachedObjectByHandle()
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
public static StateTransitionDO findCachedObjectByHandle(java.lang.String handle)
handle
- String
version of DO id
StateTransitionDO
Object if one is found in cache, otherwise null.public static StateTransitionDO findCachedObjectByHandle(java.lang.String handle, User usr) throws AccessException
handle
- String
version of DO idusr
- The user for security check
StateTransitionDO
Object if one is found in cache, otherwise null.
AccessException
- The user is not allowed to read the object existance
WebDocWf extensionprotected void makeIdentical(StateTransitionDO orig)
orig
- The original DO.public void makeReadOnly()
makeReadOnly
in class SecureDO
public void makeReadWrite()
makeReadWrite
in class SecureDO
public EnumValueDefinitionDO getENUMVALUEDEFINITIONFROMOID() throws DataObjectException
getENUMVALUEDEFINITIONFROMOID
in interface StateTransitionDOI
DataObjectException
- If the object is not found in the database.public EnumValueDefinitionDO getENUMVALUEDEFINITIONFROMOID(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 assertDOGetAttrENUMVALUEDEFINITIONFROMOIDAccess(User usr) throws AccessException
usr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOGetAttrENUMVALUEDEFINITIONFROMOIDAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public boolean hasDOGetDOValueENUMVALUEDEFINITIONFROMOIDAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public void setENUMVALUEDEFINITIONFROMOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONFROMOID) throws DataObjectException
setENUMVALUEDEFINITIONFROMOID
in interface StateTransitionDOI
ENUMVALUEDEFINITIONFROMOID
- of the GENERICSTATETRANSITION
DataObjectException
- If the object is not found in the database.public void setENUMVALUEDEFINITIONFROMOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONFROMOID, User usr) throws DataObjectException, AccessException
ENUMVALUEDEFINITIONFROMOID
- of the GENERICSTATETRANSITIONusr
- 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 assertDOSetAttrENUMVALUEDEFINITIONFROMOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONFROMOID, User usr) throws AccessException
ENUMVALUEDEFINITIONFROMOID
- of the GENERICSTATETRANSITIONusr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOSetAttrENUMVALUEDEFINITIONFROMOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONFROMOID, User usr) throws AccessEvalException
ENUMVALUEDEFINITIONFROMOID
- of the GENERICSTATETRANSITIONusr
- The user for security check
AccessEvalException
public EnumValueDefinitionDO getENUMVALUEDEFINITIONTOOID() throws DataObjectException
getENUMVALUEDEFINITIONTOOID
in interface StateTransitionDOI
DataObjectException
- If the object is not found in the database.public EnumValueDefinitionDO getENUMVALUEDEFINITIONTOOID(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 assertDOGetAttrENUMVALUEDEFINITIONTOOIDAccess(User usr) throws AccessException
usr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOGetAttrENUMVALUEDEFINITIONTOOIDAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public boolean hasDOGetDOValueENUMVALUEDEFINITIONTOOIDAccess(User usr) throws AccessEvalException
usr
- The user for security check
AccessEvalException
public void setENUMVALUEDEFINITIONTOOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONTOOID) throws DataObjectException
setENUMVALUEDEFINITIONTOOID
in interface StateTransitionDOI
ENUMVALUEDEFINITIONTOOID
- of the GENERICSTATETRANSITION
DataObjectException
- If the object is not found in the database.public void setENUMVALUEDEFINITIONTOOID(EnumValueDefinitionDO ENUMVALUEDEFINITIONTOOID, User usr) throws DataObjectException, AccessException
ENUMVALUEDEFINITIONTOOID
- of the GENERICSTATETRANSITIONusr
- 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 assertDOSetAttrENUMVALUEDEFINITIONTOOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONTOOID, User usr) throws AccessException
ENUMVALUEDEFINITIONTOOID
- of the GENERICSTATETRANSITIONusr
- The user for security check
AccessException
- The user is not allowed to read the attribute(value)
WebDocWf extensionpublic boolean hasDOSetAttrENUMVALUEDEFINITIONTOOIDAccess(EnumValueDefinitionDO ENUMVALUEDEFINITIONTOOID, User usr) throws AccessEvalException
ENUMVALUEDEFINITIONTOOID
- of the GENERICSTATETRANSITIONusr
- 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 StateTransitionDOI
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 StateTransitionDOI
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 StateTransitionDOI
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 StateTransitionDOI
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 StateTransitionDOI
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 StateTransitionDOI
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 okToCommitENUMVALUEDEFINITIONFROMOID(EnumValueDefinitionDO member) throws RefAssertionException
RefAssertionException
protected void okToDeleteENUMVALUEDEFINITIONFROMOID(EnumValueDefinitionDO member) throws RefAssertionException
RefAssertionException
protected void okToCommitENUMVALUEDEFINITIONTOOID(EnumValueDefinitionDO member) throws RefAssertionException
RefAssertionException
protected void okToDeleteENUMVALUEDEFINITIONTOOID(EnumValueDefinitionDO 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 |