|
DODS 7.2 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.appserver.server.sql.CoreDO
com.lutris.appserver.server.sql.CloneableDO
com.lutris.dods.builder.generator.dataobject.GenericDO
public abstract class GenericDO
Field Summary | |
---|---|
protected boolean |
colChanged
|
protected boolean |
dirty
|
Fields inherited from class com.lutris.appserver.server.sql.CoreDO |
---|
originalData, persistent, versioning |
Constructor Summary | |
---|---|
GenericDO()
Public constructor. |
|
GenericDO(boolean notUsingOId)
Public constructor. |
|
GenericDO(ObjectId id)
Public constructor. |
|
GenericDO(java.sql.ResultSet rs)
Public constructor. |
|
GenericDO(java.lang.String dbName)
Public constructor. |
|
GenericDO(java.lang.String dbName,
boolean notUsingOId)
Public constructor. |
|
GenericDO(java.lang.String dbName,
ObjectId id)
Public constructor. |
|
GenericDO(java.lang.String dbName,
java.sql.ResultSet rs)
Public constructor. |
Method Summary | |
---|---|
protected static CachedDBTransaction |
_tr_(DBTransaction dbt)
|
protected static void |
addToTransactionCache(GenericDO gDO,
DBTransaction dbt)
|
java.lang.Object |
cloneUnique()
Creates a clone of the object, but ensures that a new and unique object id is created for the object and that the version number is set to zero. |
boolean |
compareCond(Condition cond)
Subclass should override this method if wants to use it. |
static java.math.BigDecimal |
copyBigDecimal(java.math.BigDecimal source)
|
static byte[] |
copyByteArray(byte[] source)
|
static java.sql.Date |
copyDate(java.sql.Date source)
|
static ObjectId |
copyObjectId(ObjectId source)
|
static java.lang.String |
copyString(java.lang.String source)
|
static java.sql.Time |
copyTime(java.sql.Time source)
|
static java.sql.Timestamp |
copyTimestamp(java.sql.Timestamp source)
|
GenericDO |
createDO(GenericDO obj)
Subclass should override this method if wants to use it. |
static GenericDO |
createDO(ObjectId oid)
Subclass should override this method if wants to use it. |
void |
delete()
|
void |
executeDelete(DBConnection conn)
Deletes this object from the database. |
void |
executeInsert(DBConnection conn)
Updates the contents of this object in the database but only if the datab object is dirty. |
void |
executeUpdate(DBConnection conn)
Updates the contents of this object in the database but only if the datab object is dirty. |
void |
finalizeInsert(boolean success)
If transaction succeeded marks this object as clean. |
void |
finalizeUpdate(boolean success)
If transaction succeeded marks this object as clean. |
java.lang.String |
get_CacheHandle()
Subclass should override this method if wants to use it. |
java.lang.Object |
get_Data()
Subclass should override this method if wants to use it. |
java.lang.String |
get_Handle()
Subclass should override this method if wants to use it. |
java.lang.String |
get_OriginDatabase()
Subclass should override this method if wants to use it. |
protected static java.lang.String |
get_primaryKeyName()
Return the name of the primary key column. |
java.lang.Object |
getData()
Deprecated. Use get_Data() |
java.lang.String |
getHandle()
Deprecated. Use get_Handle() instead. |
java.lang.String |
getOriginDatabase()
Deprecated. Use get_OriginDatabase() |
protected static java.lang.String |
getPrimaryKeyName()
Deprecated. use get_primaryKeyName() |
boolean |
isDirty()
isDirty() returns true if this object has been modified
(needs to be updated to the database). |
boolean |
isExecutePartially()
|
protected static boolean |
isNewDataDifferent_BigDecimal(java.math.BigDecimal oldData,
java.math.BigDecimal newData)
|
protected static boolean |
isNewDataDifferent_boolean(boolean oldData,
boolean newData)
|
protected static boolean |
isNewDataDifferent_byte(byte oldData,
byte newData)
|
protected static boolean |
isNewDataDifferent_bytes(byte[] oldData,
byte[] newData)
|
protected static boolean |
isNewDataDifferent_DO(GenericDO oldData,
GenericDO newData)
|
protected static boolean |
isNewDataDifferent_double(double oldData,
double newData)
|
protected static boolean |
isNewDataDifferent_float(float oldData,
float newData)
|
protected static boolean |
isNewDataDifferent_int(int oldData,
int newData)
|
protected static boolean |
isNewDataDifferent_java_math_BigDecimal(java.math.BigDecimal oldData,
java.math.BigDecimal newData)
|
protected static boolean |
isNewDataDifferent_java_sql_Date(java.sql.Date oldData,
java.sql.Date newData)
|
protected static boolean |
isNewDataDifferent_java_sql_Time(java.sql.Time oldData,
java.sql.Time newData)
|
protected static boolean |
isNewDataDifferent_java_sql_Timestamp(java.sql.Timestamp oldData,
java.sql.Timestamp newData)
|
protected static boolean |
isNewDataDifferent_long(long oldData,
long newData)
|
protected static boolean |
isNewDataDifferent_short(short oldData,
short newData)
|
protected static boolean |
isNewDataDifferent_String(java.lang.String oldData,
java.lang.String newData)
|
protected void |
makeIdentical(GenericDO obj)
makeIdentical() Used by subclasses to assign any data members to this data object. |
protected void |
markClean()
markClean() with no arguments is used to indicate that
this object is marked as "clean" (it does not need to be updated to the
database). |
protected void |
markNewValue()
markNewValue() with no arguments is used to indicate that
this object is marked as "dirty" (in need of an update to the database). |
protected java.math.BigDecimal |
markNewValue(java.math.BigDecimal current_bd,
java.math.BigDecimal new_bd)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected boolean |
markNewValue(boolean current_boolean,
boolean new_boolean)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected byte[] |
markNewValue(byte[] current_val,
byte[] new_val)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected byte |
markNewValue(byte current_byte,
byte new_byte)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected char |
markNewValue(char current_char,
char new_char)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected java.util.Date |
markNewValue(java.util.Date current_date,
java.util.Date new_date)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected java.sql.Date |
markNewValue(java.sql.Date current_val,
java.sql.Date new_val)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected double |
markNewValue(double current_double,
double new_double)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected float |
markNewValue(float current_float,
float new_float)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected GenericDO |
markNewValue(GenericDO current_DO,
GenericDO new_DO)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected int |
markNewValue(int current_int,
int new_int)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected long |
markNewValue(long current_long,
long new_long)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected ObjectId |
markNewValue(ObjectId current_OId,
ObjectId new_OId)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected short |
markNewValue(short current_short,
short new_short)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected java.lang.String |
markNewValue(java.lang.String current_string,
java.lang.String new_string,
int max_length,
boolean nullOK)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected java.lang.String |
markNewValue(java.lang.String current_string,
java.lang.String new_string,
int min_length,
int max_length,
boolean nullOK)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected java.sql.Timestamp |
markNewValue(java.sql.Timestamp current_val,
java.sql.Timestamp new_val)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
protected java.sql.Time |
markNewValue(java.sql.Time current_val,
java.sql.Time new_val)
If the current data member value differs from the new value, this object is marked as "dirty" (in need of an update to the database). |
void |
originalData_set(java.lang.Object data)
Subclass should override this method if wants to use it. |
static void |
printMsg(int level,
java.lang.String s)
|
void |
set_Data(java.lang.Object data)
Subclass should override this method if wants to use it. |
protected void |
set_OId(ObjectId oId)
Sets this object's identifier. |
void |
setData(java.lang.Object data)
Deprecated. Use set_Data() |
void |
setExecutePartially(boolean _ep)
|
protected void |
setPrepStmtParam_BigDecimal(java.sql.PreparedStatement stmt,
int[] paramIndex,
java.math.BigDecimal value)
|
protected void |
setPrepStmtParam_boolean(java.sql.PreparedStatement stmt,
int[] paramIndex,
boolean value)
|
protected void |
setPrepStmtParam_byte(java.sql.PreparedStatement stmt,
int[] paramIndex,
byte value)
|
protected void |
setPrepStmtParam_bytes(java.sql.PreparedStatement stmt,
int[] paramIndex,
byte[] value)
|
protected void |
setPrepStmtParam_DO(java.sql.PreparedStatement stmt,
int[] paramIndex,
GenericDO value)
|
protected void |
setPrepStmtParam_double(java.sql.PreparedStatement stmt,
int[] paramIndex,
double value)
|
protected void |
setPrepStmtParam_float(java.sql.PreparedStatement stmt,
int[] paramIndex,
float value)
|
protected void |
setPrepStmtParam_int(java.sql.PreparedStatement stmt,
int[] paramIndex,
int value)
|
protected void |
setPrepStmtParam_java_math_BigDecimal(java.sql.PreparedStatement stmt,
int[] paramIndex,
java.math.BigDecimal value)
|
protected void |
setPrepStmtParam_java_sql_Date(java.sql.PreparedStatement stmt,
int[] paramIndex,
java.sql.Date value)
|
protected void |
setPrepStmtParam_java_sql_Time(java.sql.PreparedStatement stmt,
int[] paramIndex,
java.sql.Time value)
|
protected void |
setPrepStmtParam_java_sql_Timestamp(java.sql.PreparedStatement stmt,
int[] paramIndex,
java.sql.Timestamp value)
|
protected void |
setPrepStmtParam_long(java.sql.PreparedStatement stmt,
int[] paramIndex,
long value)
|
protected void |
setPrepStmtParam_ObjectId(java.sql.PreparedStatement stmt,
int[] paramIndex,
ObjectId value)
|
protected void |
setPrepStmtParam_short(java.sql.PreparedStatement stmt,
int[] paramIndex,
short value)
|
protected void |
setPrepStmtParam_String(java.sql.PreparedStatement stmt,
int[] paramIndex,
java.lang.String value)
|
java.lang.String |
toString(int x)
|
abstract void |
writeXML(java.io.Writer writer)
Writes the data, properties, and metadata for this WebRowSet object to the given Writer object in XML format. |
Methods inherited from class com.lutris.appserver.server.sql.CloneableDO |
---|
clone |
Methods inherited from class com.lutris.appserver.server.sql.CoreDO |
---|
addToCache, deleteFromCache, disableVersioning, dumpData, evict, executeLockingStatement, finalizeDelete, get_NewVersion, get_OId, get_OIdColumnName, get_Version, get_versionColumnName, getDeleteStatement, getInsertStatement, getNewVersion, getOId, getOIdColumnName, getOriginalVersion, getTableName, getUpdateStatement, getVersion, getVersionColumnName, isPersistent, makeInvisible, makeVisible, objectIdentityType, originalData_get, refresh, set_NewVersion, set_OIdColumnName, set_Version, set_versionColumnName, setNewVersion, setOId, setOIdColumnName, setPersistent, setVersion, setVersionColumnName, updateCache |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean dirty
protected boolean colChanged
Constructor Detail |
---|
public GenericDO() throws ObjectIdException, DatabaseManagerException
ObjectIdException
DatabaseManagerException
public GenericDO(java.lang.String dbName) throws ObjectIdException, DatabaseManagerException
ObjectIdException
DatabaseManagerException
public GenericDO(boolean notUsingOId) throws ObjectIdException, DatabaseManagerException
ObjectIdException
DatabaseManagerException
public GenericDO(java.lang.String dbName, boolean notUsingOId) throws ObjectIdException, DatabaseManagerException
ObjectIdException
DatabaseManagerException
public GenericDO(ObjectId id) throws ObjectIdException, DatabaseManagerException
ObjectIdException
DatabaseManagerException
public GenericDO(java.lang.String dbName, ObjectId id) throws ObjectIdException, DatabaseManagerException
ObjectIdException
DatabaseManagerException
public GenericDO(java.sql.ResultSet rs) throws java.sql.SQLException, ObjectIdException, DatabaseManagerException
rs
- a result set.
java.sql.SQLException
- if an error occurs while instantiating this object from
the result set.
ObjectIdException
- if the object id for this object is invalid.
DatabaseManagerException
- If a nonexistent default logical database has been set.public GenericDO(java.lang.String dbName, java.sql.ResultSet rs) throws java.sql.SQLException, ObjectIdException, DatabaseManagerException
rs
- a result set.
java.sql.SQLException
- if an error occurs while instantiating this object from
the result set.
ObjectIdException
- if the object id for this object is invalid.
DatabaseManagerException
- If a nonexistent logical database name is supplied.Method Detail |
---|
public static void printMsg(int level, java.lang.String s)
public java.lang.Object cloneUnique() throws DatabaseManagerException, ObjectIdException
cloneUnique
in class CloneableDO
DatabaseManagerException
- if an error occurs while allocation a new object id from
the default logical database.
ObjectIdException
- if a new object id could not be allocated.protected void makeIdentical(GenericDO obj)
obj
- The original DO.public void executeUpdate(DBConnection conn) throws java.sql.SQLException
executeUpdate
in interface Transaction
executeUpdate
in class CoreDO
conn
- the database connection.
java.sql.SQLException
- If a database access error occurs.
DBRowUpdateException
- If a version error occurs.public void executeInsert(DBConnection conn) throws java.sql.SQLException
executeInsert
in interface Transaction
executeInsert
in class CoreDO
conn
- the database connection.
java.sql.SQLException
- If a database access error occurs.
DBRowUpdateException
- If a version error occurs.public void executeDelete(DBConnection conn) throws java.sql.SQLException
executeDelete
in interface Transaction
executeDelete
in class CoreDO
conn
- Database connection.
java.sql.SQLException
- If a database access error occurs.public void finalizeInsert(boolean success)
finalizeInsert
in interface Transaction
finalizeInsert
in class CoreDO
success
- true if the transaction succeeded and this object was
successfully inserted into the database.public void finalizeUpdate(boolean success)
finalizeUpdate
in interface Transaction
finalizeUpdate
in class CoreDO
success
- true if the transaction succeeded and this object was
successfully updated in the database.CoreDO.get_NewVersion()
protected static java.lang.String get_primaryKeyName()
author Jay Gunter
protected static java.lang.String getPrimaryKeyName()
author Jay Gunter
protected void set_OId(ObjectId oId)
set_OId
in class CoreDO
oId
- this object's identifier.public boolean isDirty()
isDirty()
returns true if this object has been modified
(needs to be updated to the database).
protected void markClean()
markClean()
with no arguments is used to indicate that
this object is marked as "clean" (it does not need to be updated to the
database).
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
protected void markNewValue()
markNewValue()
with no arguments is used to indicate that
this object is marked as "dirty" (in need of an update to the database).
There is no way to mark this object as "clean";executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
protected java.lang.String markNewValue(java.lang.String current_string, java.lang.String new_string, int max_length, boolean nullOK)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value, max_length, nullOK )
If nullOK
is
false and new_field_value
is null, this.field
is set to ""
.
current_string
- The current value of the String data member.new_string
- The new value of the String data member.max_length
- The maximum allowed length of the String value. If the
new_string is longer than max_length, new_string is truncated.
If max_length is less than 1, no maximum is imposed.
protected java.lang.String markNewValue(java.lang.String current_string, java.lang.String new_string, int min_length, int max_length, boolean nullOK)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value, min_length, max_length, nullOK )
If min_length >
0
and nullOK
is false and new_field_value
is null, this.field
is returned (the new_field_value
is ignored.)
current_string
- The current value of the String data member.new_string
- The new value of the String data member.min_length
- The minimum allowed length of the String value. If the
new_string is shorter than min_length, new_string is ignored.
If min_length is less than 0, no minimum is imposed.max_length
- The maximum allowed length of the String value. If the
new_string is longer than max_length, new_string is truncated.
If max_length is less than 1, no maximum is imposed.
protected ObjectId markNewValue(ObjectId current_OId, ObjectId new_OId)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_OId
- The current value of the ObjectId data member.new_OId
- The new value of the ObjectId data member.
protected java.util.Date markNewValue(java.util.Date current_date, java.util.Date new_date)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_date
- The current value of the Date data member.new_date
- The new value of the Date data member.
protected java.math.BigDecimal markNewValue(java.math.BigDecimal current_bd, java.math.BigDecimal new_bd)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_bd
- The current value of the BigDecimal data member.new_bd
- The new value of the BigDecimal data member.
protected byte[] markNewValue(byte[] current_val, byte[] new_val)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_val
- The current value of the byte array data member.new_val
- The new value of the byte array data member.
protected java.sql.Date markNewValue(java.sql.Date current_val, java.sql.Date new_val)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_val
- The current value of the java.sql.Date data member.new_val
- The new value of the java.sql.Date data member.
protected java.sql.Time markNewValue(java.sql.Time current_val, java.sql.Time new_val)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_val
- The current value of the java.sql.Time data member.new_val
- The new value of the java.sql.Time data member.
protected java.sql.Timestamp markNewValue(java.sql.Timestamp current_val, java.sql.Timestamp new_val)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_val
- The current value of the java.sql.Timestamp data member.new_val
- The new value of the java.sql.Timestamp data member.
protected int markNewValue(int current_int, int new_int)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_int
- The current value of the int data member.new_int
- The new value of the int data member.
protected float markNewValue(float current_float, float new_float)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_float
- The current value of the float data member.new_float
- The new value of the float data member.
protected double markNewValue(double current_double, double new_double)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_double
- The current value of the double data member.new_double
- The new value of the double data member.
protected boolean markNewValue(boolean current_boolean, boolean new_boolean)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_boolean
- The current value of the boolean data member.new_boolean
- The new value of the boolean data member.
protected char markNewValue(char current_char, char new_char)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_char
- The current value of the char data member.new_char
- The new value of the char data member.
protected byte markNewValue(byte current_byte, byte new_byte)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_byte
- The current value of the byte data member.new_byte
- The new value of the byte data member.
protected short markNewValue(short current_short, short new_short)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_short
- The current value of the short data member.new_short
- The new value of the short data member.
protected long markNewValue(long current_long, long new_long)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_long
- The current value of the long data member.new_long
- The new value of the long data member.
protected GenericDO markNewValue(GenericDO current_DO, GenericDO new_DO)
executeInsert()
and executeUpdate()
methods can make that so.
This method is protected since only derived Data Objects (DO's) "set
"
methods will be calling it.
This method returns the new value as a convenience to the calling "set
"
method. The usage is: this.field = markNewValue( this.field,
new_field_value )
current_DO
- Curent data object.new_DO
- New data object.
protected void setPrepStmtParam_DO(java.sql.PreparedStatement stmt, int[] paramIndex, GenericDO value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_DO(GenericDO oldData, GenericDO newData)
protected void setPrepStmtParam_String(java.sql.PreparedStatement stmt, int[] paramIndex, java.lang.String value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_String(java.lang.String oldData, java.lang.String newData)
protected void setPrepStmtParam_float(java.sql.PreparedStatement stmt, int[] paramIndex, float value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_float(float oldData, float newData)
protected void setPrepStmtParam_int(java.sql.PreparedStatement stmt, int[] paramIndex, int value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_int(int oldData, int newData)
protected void setPrepStmtParam_java_math_BigDecimal(java.sql.PreparedStatement stmt, int[] paramIndex, java.math.BigDecimal value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_java_math_BigDecimal(java.math.BigDecimal oldData, java.math.BigDecimal newData)
protected void setPrepStmtParam_BigDecimal(java.sql.PreparedStatement stmt, int[] paramIndex, java.math.BigDecimal value) throws java.sql.SQLException
java.sql.SQLException
protected void setPrepStmtParam_ObjectId(java.sql.PreparedStatement stmt, int[] paramIndex, ObjectId value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_BigDecimal(java.math.BigDecimal oldData, java.math.BigDecimal newData)
protected void setPrepStmtParam_java_sql_Date(java.sql.PreparedStatement stmt, int[] paramIndex, java.sql.Date value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_java_sql_Date(java.sql.Date oldData, java.sql.Date newData)
protected void setPrepStmtParam_java_sql_Time(java.sql.PreparedStatement stmt, int[] paramIndex, java.sql.Time value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_java_sql_Time(java.sql.Time oldData, java.sql.Time newData)
protected void setPrepStmtParam_java_sql_Timestamp(java.sql.PreparedStatement stmt, int[] paramIndex, java.sql.Timestamp value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_java_sql_Timestamp(java.sql.Timestamp oldData, java.sql.Timestamp newData)
protected void setPrepStmtParam_bytes(java.sql.PreparedStatement stmt, int[] paramIndex, byte[] value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_bytes(byte[] oldData, byte[] newData)
protected void setPrepStmtParam_double(java.sql.PreparedStatement stmt, int[] paramIndex, double value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_double(double oldData, double newData)
protected void setPrepStmtParam_long(java.sql.PreparedStatement stmt, int[] paramIndex, long value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_long(long oldData, long newData)
protected void setPrepStmtParam_short(java.sql.PreparedStatement stmt, int[] paramIndex, short value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_short(short oldData, short newData)
protected void setPrepStmtParam_byte(java.sql.PreparedStatement stmt, int[] paramIndex, byte value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_byte(byte oldData, byte newData)
protected void setPrepStmtParam_boolean(java.sql.PreparedStatement stmt, int[] paramIndex, boolean value) throws java.sql.SQLException
java.sql.SQLException
protected static boolean isNewDataDifferent_boolean(boolean oldData, boolean newData)
public java.lang.String toString(int x)
public void delete() throws java.sql.SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException
java.sql.SQLException
DatabaseManagerException
DataObjectException
RefAssertionException
DBRowUpdateException
QueryException
public static byte[] copyByteArray(byte[] source)
public static java.lang.String copyString(java.lang.String source)
public static java.math.BigDecimal copyBigDecimal(java.math.BigDecimal source)
public static ObjectId copyObjectId(ObjectId source) throws DataObjectException
DataObjectException
public static java.sql.Date copyDate(java.sql.Date source)
public static java.sql.Time copyTime(java.sql.Time source)
public static java.sql.Timestamp copyTimestamp(java.sql.Timestamp source)
public boolean compareCond(Condition cond)
cond
- conditions of the query.
public void setData(java.lang.Object data)
data
- DO's data.public void set_Data(java.lang.Object data)
data
- DO's data.public void originalData_set(java.lang.Object data)
public java.lang.Object getData()
public java.lang.Object get_Data()
public java.lang.String get_Handle() throws DatabaseManagerException
DatabaseManagerException
public java.lang.String getHandle() throws DatabaseManagerException
DatabaseManagerException
public java.lang.String get_CacheHandle() throws DatabaseManagerException
DatabaseManagerException
public GenericDO createDO(GenericDO obj)
obj
- DO which will be copied.
public static GenericDO createDO(ObjectId oid) throws java.sql.SQLException, ObjectIdException, DataObjectException, DatabaseManagerException
oid
- DO(by oid) which will be copied.
java.sql.SQLException
ObjectIdException
DataObjectException
DatabaseManagerException
public java.lang.String getOriginDatabase()
public java.lang.String get_OriginDatabase()
public void setExecutePartially(boolean _ep)
public boolean isExecutePartially()
protected static CachedDBTransaction _tr_(DBTransaction dbt)
protected static void addToTransactionCache(GenericDO gDO, DBTransaction dbt)
public abstract void writeXML(java.io.Writer writer) throws DataObjectException
writer
- java.io.Writer to write into
DataObjectException
|
DODS 7.2 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |