com.informix.ormapper
Class OBase
java.lang.Object
|
+--com.informix.ormapper.OBase
- public class OBase
- extends java.lang.Object
This is the persistence superclass for all Object Translator-generated main classes.
It provides internal methods that persist attributes to and from databases
through JDBC.
- See Also:
OCollection
Constructor Summary |
protected |
OBase()
|
Method Summary |
protected void |
closeQuery()
|
void |
closeRoutine()
|
protected void |
delete(java.lang.String sql)
|
protected void |
destroy()
|
boolean |
equals(java.lang.Object obj)
|
protected java.sql.ResultSet |
executeRoutine()
|
protected OBaseOID |
getBaseOID()
|
OConnection |
getConnection()
|
int |
getDetectType()
Gets the optimistic concurrency detect type for the object. |
protected int |
getInternalErrorCode()
|
boolean |
getLogging()
|
protected java.lang.Object |
getParameter(int columnIndex)
|
java.lang.String |
getPredicate()
|
protected java.sql.ResultSet |
getResultSet()
|
protected java.lang.Integer |
getSerial()
|
protected java.lang.Long |
getSerial8()
|
protected java.sql.Statement |
getStatement()
|
java.math.BigDecimal |
getValueAsBigDecimal(int columnIndex)
|
java.lang.Boolean |
getValueAsBoolean(int columnIndex)
|
java.lang.Byte |
getValueAsByte(int columnIndex)
|
java.sql.Date |
getValueAsDate(int columnIndex)
|
java.lang.Double |
getValueAsDouble(int columnIndex)
|
java.lang.Float |
getValueAsFloat(int columnIndex)
|
java.lang.Integer |
getValueAsInteger(int columnIndex)
|
java.lang.Long |
getValueAsLong(int columnIndex)
|
java.lang.Object |
getValueAsObject(int columnIndex)
|
OBlob |
getValueAsOBlob(int columnIndex)
|
protected OClob |
getValueAsOClob(int columnIndex)
|
java.lang.Short |
getValueAsShort(int columnIndex)
|
java.lang.String |
getValueAsString(int columnIndex)
|
java.sql.Time |
getValueAsTime(int columnIndex)
|
java.sql.Timestamp |
getValueAsTimestamp(int columnIndex)
|
protected void |
prepareSave(java.lang.String sql)
|
protected void |
registerOutParameter(int columnIndex,
int sqlType)
|
protected void |
retrieve(java.lang.String sql)
|
protected void |
save()
|
void |
setBaseClass(OBase base)
|
void |
setChangedRowIndicator(int column,
boolean isIndicator)
|
void |
setConnection(OConnection _connection)
|
void |
setDetectSQL(java.lang.String sql)
|
void |
setDetectType(int type)
Sets the optimistic concurrency detect type for the object. |
void |
setLogging(boolean _logging)
Sets the logging option. |
protected void |
setOID(OBaseOID oid)
|
void |
setOpaqueAsString(int column)
|
protected void |
setParameter(int columnIndex,
java.lang.Object val)
|
void |
setPredicate(java.lang.String _predicate)
|
protected void |
setResultSet(java.sql.ResultSet _rSet)
|
protected void |
setRoutineSQL(java.lang.String sql)
|
protected void |
setStatement(java.sql.Statement stmt)
|
protected void |
setValue(int columnIndex,
int selectIndex,
java.lang.Object val)
|
void |
setValueAsBigDecimal(int columnIndex,
int selectIndex,
java.math.BigDecimal val)
|
void |
setValueAsBoolean(int columnIndex,
int selectIndex,
java.lang.Boolean val)
|
void |
setValueAsByte(int columnIndex,
int selectIndex,
java.lang.Byte val)
|
void |
setValueAsDate(int columnIndex,
int selectIndex,
java.sql.Date val)
|
void |
setValueAsDouble(int columnIndex,
int selectIndex,
java.lang.Double val)
|
void |
setValueAsFloat(int columnIndex,
int selectIndex,
java.lang.Float val)
|
void |
setValueAsInteger(int columnIndex,
int selectIndex,
java.lang.Integer val)
|
void |
setValueAsLong(int columnIndex,
int selectIndex,
java.lang.Long val)
|
void |
setValueAsObject(int columnIndex,
int selectIndex,
java.lang.Object val)
|
void |
setValueAsOBlob(int columnIndex,
int selectIndex,
OBlob val)
|
void |
setValueAsOClob(int columnIndex,
int selectIndex,
OClob val)
|
void |
setValueAsShort(int columnIndex,
int selectIndex,
java.lang.Short val)
|
void |
setValueAsString(int columnIndex,
int selectIndex,
java.lang.String val)
|
void |
setValueAsTime(int columnIndex,
int selectIndex,
java.sql.Time val)
|
void |
setValueAsTimestamp(int columnIndex,
int selectIndex,
java.sql.Timestamp val)
|
protected void |
store()
|
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
connection
protected OConnection connection
OBase
protected OBase()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
- equals in class java.lang.Object
setBaseClass
public void setBaseClass(OBase base)
getBaseOID
protected OBaseOID getBaseOID()
setOID
protected void setOID(OBaseOID oid)
getResultSet
protected java.sql.ResultSet getResultSet()
setResultSet
protected void setResultSet(java.sql.ResultSet _rSet)
getStatement
protected java.sql.Statement getStatement()
setStatement
protected void setStatement(java.sql.Statement stmt)
getInternalErrorCode
protected int getInternalErrorCode()
getConnection
public OConnection getConnection()
setConnection
public void setConnection(OConnection _connection)
getLogging
public boolean getLogging()
setLogging
public void setLogging(boolean _logging)
- Sets the logging option. Turn on the logging will print out the
SQL passed to the server.
- Parameters:
_logging
- true for logging; false for no logging.
getPredicate
public java.lang.String getPredicate()
setPredicate
public void setPredicate(java.lang.String _predicate)
setDetectSQL
public void setDetectSQL(java.lang.String sql)
getDetectType
public int getDetectType()
- Gets the optimistic concurrency detect type for the object.
- Returns:
DETECT_NONE
, DETECT_CHANGEDROW
,
DETECT_UPDATED
, or DETECT_QUERIED
setDetectType
public void setDetectType(int type)
throws DatabaseException
- Sets the optimistic concurrency detect type for the object.
This would overwrite the detect type of the connection.
- Parameters:
type
- DETECT_NONE
, DETECT_CHANGEDROW
,
DETECT_UPDATED
, or DETECT_QUERIED
- See Also:
OConnection
setOpaqueAsString
public void setOpaqueAsString(int column)
retrieve
protected void retrieve(java.lang.String sql)
throws DatabaseException,
NoConnectionException,
NoResultSetException
closeQuery
protected void closeQuery()
throws DatabaseException
prepareSave
protected void prepareSave(java.lang.String sql)
throws DatabaseException,
NoConnectionException
save
protected void save()
throws DatabaseException,
ChangeDetectedException
delete
protected void delete(java.lang.String sql)
throws NoConnectionException,
ChangeDetectedException,
DatabaseException
store
protected void store()
throws java.io.InvalidObjectException,
DatabaseException,
NoConnectionException,
ChangeDetectedException
destroy
protected void destroy()
throws java.io.InvalidObjectException,
DatabaseException,
NoConnectionException,
ChangeDetectedException
setChangedRowIndicator
public void setChangedRowIndicator(int column,
boolean isIndicator)
getValueAsObject
public java.lang.Object getValueAsObject(int columnIndex)
throws DatabaseException
setValueAsObject
public void setValueAsObject(int columnIndex,
int selectIndex,
java.lang.Object val)
throws DatabaseException
getValueAsBigDecimal
public java.math.BigDecimal getValueAsBigDecimal(int columnIndex)
throws DatabaseException
setValueAsBigDecimal
public void setValueAsBigDecimal(int columnIndex,
int selectIndex,
java.math.BigDecimal val)
throws DatabaseException
getValueAsInteger
public java.lang.Integer getValueAsInteger(int columnIndex)
throws DatabaseException
setValueAsInteger
public void setValueAsInteger(int columnIndex,
int selectIndex,
java.lang.Integer val)
throws DatabaseException
getValueAsString
public java.lang.String getValueAsString(int columnIndex)
throws DatabaseException
setValueAsString
public void setValueAsString(int columnIndex,
int selectIndex,
java.lang.String val)
throws DatabaseException
getValueAsBoolean
public java.lang.Boolean getValueAsBoolean(int columnIndex)
throws DatabaseException
setValueAsBoolean
public void setValueAsBoolean(int columnIndex,
int selectIndex,
java.lang.Boolean val)
throws DatabaseException
getValueAsByte
public java.lang.Byte getValueAsByte(int columnIndex)
throws DatabaseException
setValueAsByte
public void setValueAsByte(int columnIndex,
int selectIndex,
java.lang.Byte val)
throws DatabaseException
getValueAsDate
public java.sql.Date getValueAsDate(int columnIndex)
throws DatabaseException
setValueAsDate
public void setValueAsDate(int columnIndex,
int selectIndex,
java.sql.Date val)
throws DatabaseException
getValueAsDouble
public java.lang.Double getValueAsDouble(int columnIndex)
throws DatabaseException
setValueAsDouble
public void setValueAsDouble(int columnIndex,
int selectIndex,
java.lang.Double val)
throws DatabaseException
getValueAsFloat
public java.lang.Float getValueAsFloat(int columnIndex)
throws DatabaseException
setValueAsFloat
public void setValueAsFloat(int columnIndex,
int selectIndex,
java.lang.Float val)
throws DatabaseException
getValueAsLong
public java.lang.Long getValueAsLong(int columnIndex)
throws DatabaseException
setValueAsLong
public void setValueAsLong(int columnIndex,
int selectIndex,
java.lang.Long val)
throws DatabaseException
getValueAsShort
public java.lang.Short getValueAsShort(int columnIndex)
throws DatabaseException
setValueAsShort
public void setValueAsShort(int columnIndex,
int selectIndex,
java.lang.Short val)
throws DatabaseException
getValueAsTime
public java.sql.Time getValueAsTime(int columnIndex)
throws DatabaseException
setValueAsTime
public void setValueAsTime(int columnIndex,
int selectIndex,
java.sql.Time val)
throws DatabaseException
getValueAsTimestamp
public java.sql.Timestamp getValueAsTimestamp(int columnIndex)
throws DatabaseException
setValueAsTimestamp
public void setValueAsTimestamp(int columnIndex,
int selectIndex,
java.sql.Timestamp val)
throws DatabaseException
getValueAsOClob
protected OClob getValueAsOClob(int columnIndex)
throws DatabaseException
setValueAsOClob
public void setValueAsOClob(int columnIndex,
int selectIndex,
OClob val)
throws DatabaseException
getValueAsOBlob
public OBlob getValueAsOBlob(int columnIndex)
throws DatabaseException
setValueAsOBlob
public void setValueAsOBlob(int columnIndex,
int selectIndex,
OBlob val)
throws DatabaseException
getSerial
protected java.lang.Integer getSerial()
throws DatabaseException
getSerial8
protected java.lang.Long getSerial8()
throws DatabaseException
setValue
protected void setValue(int columnIndex,
int selectIndex,
java.lang.Object val)
throws DatabaseException
setRoutineSQL
protected void setRoutineSQL(java.lang.String sql)
throws DatabaseException
executeRoutine
protected java.sql.ResultSet executeRoutine()
throws DatabaseException
setParameter
protected void setParameter(int columnIndex,
java.lang.Object val)
throws DatabaseException
registerOutParameter
protected void registerOutParameter(int columnIndex,
int sqlType)
throws DatabaseException
getParameter
protected java.lang.Object getParameter(int columnIndex)
throws DatabaseException
closeRoutine
public void closeRoutine()
throws DatabaseException
Copyright © 1999-2000 Informix Software, Inc.