|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.knowgate.dataobjs.DBPersist
Core class for persisting Java objects as registers in a RDMS.
Althought not an abstract class, DBPersist is mainly designed to be inherited by a child class implementing specific behavior for reading a writting a Java object from and to a relational database.
DBPersist mantains an internal collection of values each one mapped to a database field.
This mapping is done automatically by DBPersist reading the target table metadata definition and preparing the proper internal value set.This object keeps the internal value set in memory as long as it is not garbage collected, but it does not mantaing any session information nor transaction management with the database. It is the programmer's responsability to pass an open database connection on each method call and to commit or rollback transaction involving the usage of a DBPersist object.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary | |
protected java.util.HashMap |
AllVals
|
protected java.lang.String |
sAuditCls
|
protected java.lang.String |
sAuditUsr
|
protected java.lang.String |
sTransactId
|
| Constructor Summary | |
DBPersist(java.lang.String sTableName,
java.lang.String sAuditClass)
Create instance for reading and writing register from a table |
|
DBPersist(java.lang.String sTableName,
java.lang.String sAuditClass,
boolean bAllValuesUpperCase)
Create instance for reading and writing register from a table |
|
| Method Summary | |
boolean |
allcaps()
Get allcaps state |
void |
allcaps(boolean bAllValuesUpperCase)
Automatically convert put string values to uppercase |
protected java.util.HashMap |
changelog(DBPersist oOldInstance)
Compares two objects and returns a Map of their differences |
void |
clear()
Clears internal values. |
void |
clone(DBPersist oSource)
Copy another DBPersist into this instance |
boolean |
containsKey(java.lang.Object oKey)
Returns true if this DBPersist contains a field for the given name |
boolean |
containsValue(java.lang.Object oKey)
Returns true if any of this DBPersist fields has the specified value. |
boolean |
delete(JDCConnection oConn)
Delete a register from database |
java.util.Set |
entrySet()
|
boolean |
exists(JDCConnection oConn)
Find out whether or not a particular register exists at database |
java.lang.Object |
get(java.lang.Object oKey)
Get value for a field name |
java.lang.Object |
get(java.lang.String sKey)
Get value for a field name |
java.lang.String |
getAuditClassName()
Get audit class name |
java.util.Date |
getCreationDate(JDCConnection oConn)
Get dt_created column of register corresponding to this DBPersist instace |
java.util.Date |
getDate(java.lang.String sKey)
Get value for a DATE field |
java.lang.String |
getDateFormated(java.lang.String sKey,
java.lang.String sFormat)
Get value for a DATE, DATETIME or TIMESTAMP field formated a String |
java.lang.String |
getDateShort(java.lang.String sKey)
Get DATE formated as ccyy-mm-dd |
java.math.BigDecimal |
getDecimal(java.lang.String sKey)
Get value for a DECIMAL or NUMERIC field |
java.lang.String |
getDecimalFormated(java.lang.String sKey,
java.lang.String sPattern)
Get decimal formated as a String using the given pattern and the symbols for the default locale |
double |
getDouble(java.lang.String sKey)
Get value for a DOUBLE or NUMBER([1..28],m) field |
java.lang.String |
getDoubleFormated(java.lang.String sKey,
java.lang.String sPattern)
Get double formated as a String using the given pattern and the symbols for the default locale |
float |
getFloat(java.lang.String sKey)
Get value for a FLOAT or NUMBER([1..28],m) field |
java.lang.String |
getFloatFormated(java.lang.String sKey,
java.lang.String sPattern)
Get float formated as a String using the given pattern and the symbols for the default locale |
int |
getInt(java.lang.String sKey)
Get value for a INTEGER or NUMBER([1..11]) field |
java.lang.Integer |
getInteger(java.lang.String sKey)
Get value for a INTEGER or NUMBER([1..11]) field |
java.util.HashMap |
getItemMap()
|
java.util.Set |
getItems()
Deprecated. Use keySet() instead |
short |
getShort(java.lang.String sKey)
Get value for a SMALLINT field |
java.lang.String |
getString(java.lang.String sKey)
Get value for a CHAR, VARCHAR or LONGVARCHAR field |
java.lang.String |
getStringNull(java.lang.String sKey,
java.lang.String sDefault)
Get value for a CHAR, VARCHAR or LONGVARCHAR field replacing null with a default value. |
DBTable |
getTable()
Deprecated. Use getTable(JDCConnection) instead |
DBTable |
getTable(JDCConnection oConn)
Get DBTable object witch holds this DBPersist registers. |
java.lang.String |
getTableName()
Get base table name |
java.lang.String |
getTime(java.lang.String sKey)
Get time part of date as a String |
java.sql.Time |
getTimeOfDay(java.lang.String sKey)
Get value for SQL92 TIME field |
java.sql.Timestamp |
getTimestamp(java.lang.String sKey)
Get value for a DATETIME or TIMESTAMP field |
protected static java.lang.String |
getUIdFromName(JDCConnection oConn,
java.lang.Integer iDomainId,
java.lang.String sInstanceNm,
java.lang.String sStoredProc)
Internal method for being called by inherited classes |
boolean |
isEmpty()
Returns whether or not this DBPersist contains no field values |
boolean |
isNull(java.lang.String sKey)
Test is a readed field was null. |
java.util.Iterator |
iterator()
|
java.util.Set |
keySet()
|
boolean |
load(JDCConnection oConn,
java.lang.Object[] PKVals)
Load the internal value set from a register at a database table |
boolean |
load(JDCConnection oConn,
java.lang.String sKey)
Load the internal value set from a register at a database table |
void |
parseXML(java.lang.String sXMLFilePath)
Load an XML String into DBPersist internal collection. |
java.lang.Object |
put(java.lang.Object sKey,
java.lang.Object oObj)
Set value at internal collection |
void |
put(java.lang.String sKey,
java.math.BigDecimal oDecVal)
Put BigDecimal value at internal collection |
void |
put(java.lang.String sKey,
byte[] aBytes)
Set reference to a byte array for a long field |
void |
put(java.lang.String sKey,
char[] aChars)
Set reference to a character array for a long field |
void |
put(java.lang.String sKey,
java.util.Date dtVal)
Set value at internal collection |
void |
put(java.lang.String sKey,
double dVal)
Put double value at internal collection |
void |
put(java.lang.String sKey,
java.io.File oFile)
Set reference to a binary file for a long field |
void |
put(java.lang.String sKey,
float fVal)
Set value at internal collection |
void |
put(java.lang.String sKey,
int iVal)
Set value at internal collection |
void |
put(java.lang.String sKey,
java.lang.Object oObj)
Set value at internal collection |
void |
put(java.lang.String sKey,
short iVal)
Set value at internal collection |
void |
put(java.lang.String sKey,
java.lang.String sVal)
Set value at internal collection |
void |
put(java.lang.String sKey,
java.lang.String sDecVal,
java.text.DecimalFormat oPattern)
Parse BigDecimal value and put it at internal collection |
void |
put(java.lang.String sKey,
java.lang.String sData,
int iSQLType)
Set value at internal collection |
void |
put(java.lang.String sKey,
java.lang.String sDate,
java.text.SimpleDateFormat oPattern)
Put Date value using specified format |
void |
put(java.lang.String sKey,
java.sql.Time tmVal)
Set value at internal collection |
void |
putAll(java.util.Map oMap)
Put values from a Map into this DBPersist instance |
void |
putAll(java.util.Properties oPropsCollection)
Load values from a Properties object |
java.lang.Object |
remove(java.lang.Object oKey)
Remove a value from internal collection |
void |
remove(java.lang.String sKey)
Remove a value from internal collection |
void |
replace(java.lang.String sKey,
float fVal)
Replace a value from internal collection |
void |
replace(java.lang.String sKey,
int iVal)
Replace a value from internal collection |
void |
replace(java.lang.String sKey,
java.lang.Object oObj)
Replace a value from internal collection |
void |
replace(java.lang.String sKey,
short iVal)
Replace a value from internal collection |
void |
setAuditTransact(java.lang.String sAuditTransact)
Set transaction id for automatic operation auditing. |
void |
setAuditUser(java.lang.String sAuditUser)
Set user id for automatic operation auditing. |
int |
size()
Actual number of field values on this DBPersist |
boolean |
store(JDCConnection oConn)
Store a register at database representing this instance of DBPersist |
void |
toLowerCase(java.lang.String sKey)
Convert value kept with given key to lowercase |
void |
toUpperCase(java.lang.String sKey)
Convert value kept with given key to uppercase |
java.lang.String |
toXML()
Get an XML dump for the DBPersist values. |
java.lang.String |
toXML(java.lang.String sIdent)
Get an XML dump for the DBPersist values. |
java.lang.String |
toXML(java.lang.String sIdent,
java.lang.String sDelim)
Get an XML dump for the DBPersist values |
java.util.Collection |
values()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Field Detail |
protected java.util.HashMap AllVals
protected java.lang.String sAuditCls
protected java.lang.String sAuditUsr
protected java.lang.String sTransactId
| Constructor Detail |
public DBPersist(java.lang.String sTableName,
java.lang.String sAuditClass)
throws java.lang.IllegalStateException
sAuditClass - Name of child Java class inheriting from DBPersist.
java.lang.IllegalStateException
public DBPersist(java.lang.String sTableName,
java.lang.String sAuditClass,
boolean bAllValuesUpperCase)
throws java.lang.IllegalStateException
sAuditClass - Name of child Java class inheriting from DBPersist.bAllValuesUpperCase - Convert all put string values to uppercase
java.lang.IllegalStateException| Method Detail |
public void allcaps(boolean bAllValuesUpperCase)
bAllValuesUpperCase - booleanpublic boolean allcaps()
public void setAuditUser(java.lang.String sAuditUser)
public void setAuditTransact(java.lang.String sAuditTransact)
public boolean isEmpty()
isEmpty in interface java.util.Mappublic int size()
size in interface java.util.Mappublic void clear()
Clears internal values.
No register is deleted at the database.
clear in interface java.util.Mappublic void clone(DBPersist oSource)
Copy another DBPersist into this instance
Table and audit class values are replaced with to ones from source object
oSource - Source Objectpublic boolean containsValue(java.lang.Object oKey)
containsValue in interface java.util.MapoKey - Object whose presence in this map is to be tested
public boolean containsKey(java.lang.Object oKey)
throws java.lang.NullPointerException
containsKey in interface java.util.MapoKey - Field Name
java.lang.NullPointerException - If oKey is nullpublic java.lang.Object get(java.lang.String sKey)
Get value for a field name
sKey - String Field Name
public java.util.Date getCreationDate(JDCConnection oConn)
throws java.sql.SQLException
oConn - JDCConnection
java.sql.SQLException - If table for this DBPersist does not have a column named dt_created
public java.lang.Object get(java.lang.Object oKey)
throws java.lang.NullPointerException
Get value for a field name
get in interface java.util.Mapjava.lang.NullPointerException - If oKey is null
public java.math.BigDecimal getDecimal(java.lang.String sKey)
throws java.lang.ClassCastException,
java.lang.NumberFormatException
Get value for a DECIMAL or NUMERIC field
sKey - Field Name
java.lang.ClassCastException
java.lang.NumberFormatException
public java.lang.String getDecimalFormated(java.lang.String sKey,
java.lang.String sPattern)
throws java.lang.ClassCastException,
java.lang.NumberFormatException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException
Get decimal formated as a String using the given pattern and the symbols for the default locale
sKey - Field NamesPattern - A non-localized pattern string, for example: "#0.00"
java.lang.ClassCastException
java.lang.NumberFormatException
java.lang.NullPointerException - if sPattern is null
java.lang.IllegalArgumentException - if sPattern is invalid
public java.lang.String getDoubleFormated(java.lang.String sKey,
java.lang.String sPattern)
throws java.lang.ClassCastException,
java.lang.NumberFormatException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException
Get double formated as a String using the given pattern and the symbols for the default locale
sKey - Field NamesPattern - A non-localized pattern string, for example: "#0.00"
java.lang.ClassCastException
java.lang.NumberFormatException
java.lang.NullPointerException
java.lang.IllegalArgumentException
public java.lang.String getFloatFormated(java.lang.String sKey,
java.lang.String sPattern)
throws java.lang.ClassCastException,
java.lang.NumberFormatException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException
Get float formated as a String using the given pattern and the symbols for the default locale
sKey - Field NamesPattern - A non-localized pattern string, for example: "#0.00"
java.lang.ClassCastException
java.lang.NumberFormatException
java.lang.NullPointerException
java.lang.IllegalArgumentException
public java.lang.String getString(java.lang.String sKey)
throws java.lang.NullPointerException
Get value for a CHAR, VARCHAR or LONGVARCHAR field
sKey - Field Name
java.lang.NullPointerException - if field is null or no field with
such name was found at internal value collection.
public java.lang.String getStringNull(java.lang.String sKey,
java.lang.String sDefault)
Get value for a CHAR, VARCHAR or LONGVARCHAR field replacing null with a default value.
sKey - Field NamesDefault - Value to be returned if field is null. sDefault may itself
be null, provinding a null safe version of getString() method.
public java.sql.Time getTimeOfDay(java.lang.String sKey)
Get value for SQL92 TIME field
sKey - Field Name
public short getShort(java.lang.String sKey)
throws java.lang.NullPointerException
Get value for a SMALLINT field
sKey - Field Name
java.lang.NullPointerException - if field is null or no field with
such name was found at internal value collection.
public double getDouble(java.lang.String sKey)
throws java.lang.NullPointerException,
java.lang.NumberFormatException
Get value for a DOUBLE or NUMBER([1..28],m) field
sKey - Field Name
java.lang.NullPointerException - if field is null or no field with
such name was found at internal value collection.
java.lang.NumberFormatException
public float getFloat(java.lang.String sKey)
throws java.lang.NullPointerException,
java.lang.NumberFormatException
Get value for a FLOAT or NUMBER([1..28],m) field
sKey - Field Name
java.lang.NullPointerException - if field is null or no field with
such name was found at internal value collection.
java.lang.NumberFormatException
public int getInt(java.lang.String sKey)
throws java.lang.NullPointerException,
java.lang.NumberFormatException
Get value for a INTEGER or NUMBER([1..11]) field
sKey - Field Name
java.lang.NullPointerException - if field is null or no field with
such name was found at internal value collection.
java.lang.NumberFormatException
public java.lang.Integer getInteger(java.lang.String sKey)
throws java.lang.NumberFormatException
Get value for a INTEGER or NUMBER([1..11]) field
sKey - Field Name
java.lang.NumberFormatException
public java.util.Date getDate(java.lang.String sKey)
throws java.lang.ClassCastException
Get value for a DATE field
sKey - Field Name
java.lang.ClassCastException - if sKey field is not of type DATE
public java.lang.String getDateShort(java.lang.String sKey)
throws java.lang.ClassCastException
Get DATE formated as ccyy-mm-dd
sKey - Field Name
java.lang.ClassCastException - if sKey field is not of type DATE
public java.lang.String getDateFormated(java.lang.String sKey,
java.lang.String sFormat)
throws java.lang.ClassCastException
Get value for a DATE, DATETIME or TIMESTAMP field formated a String
sKey - Field NamesFormat - Date Format (like "yyyy-MM-dd HH:mm:ss")
java.lang.ClassCastException - if sKey field is not of type DATESimpleDateFormat
public java.lang.String getTime(java.lang.String sKey)
throws java.lang.ClassCastException
Get time part of date as a String
sKey - Field Name
java.lang.ClassCastException - if sKey field is not of type DATEpublic java.sql.Timestamp getTimestamp(java.lang.String sKey)
Get value for a DATETIME or TIMESTAMP field
sKey - Field Name
public java.util.Set getItems()
public java.util.Set keySet()
keySet in interface java.util.Mappublic java.util.HashMap getItemMap()
public java.util.Collection values()
values in interface java.util.Mappublic java.util.Set entrySet()
entrySet in interface java.util.Mappublic java.util.Iterator iterator()
public java.lang.String getAuditClassName()
public java.lang.String getTableName()
public DBTable getTable()
getTable(JDCConnection) instead
DBTable object where data is stored
or null if the table does not exist at the database.
public DBTable getTable(JDCConnection oConn)
throws java.sql.SQLException,
java.lang.IllegalStateException
oConn - JDBC Database Connection
DBTable object where data is stored
or null if the table does not exist at the database.
java.lang.IllegalStateException - DBPersist uses the internal static table map
from DBBind. The internal DBBind table map is loaded upon first call to
a DBBind constructor. Thus, if a DBPersist object is instantiated before
instantiating any DBBind object, the internal table map will not be
preloaded and an IllegalStateException will be raised.
java.sql.SQLExceptionpublic boolean isNull(java.lang.String sKey)
sKey - Field Name
public boolean load(JDCConnection oConn,
java.lang.Object[] PKVals)
throws java.sql.SQLException
Load the internal value set from a register at a database table
oConn - Database ConnectionPKVals - Primary key values in order of appearance
java.sql.SQLException
public boolean load(JDCConnection oConn,
java.lang.String sKey)
throws java.sql.SQLException
Load the internal value set from a register at a database table
oConn - JDCConnectionsKey - String Primary key value
java.sql.SQLException
public void put(java.lang.String sKey,
java.lang.String sVal)
throws java.lang.NullPointerException
Set value at internal collection
If allcaps is set tu true then sVal is converted to uppercase
sKey - Field NamesVal - Field Value
java.lang.NullPointerException - If sKey is null
public void put(java.lang.String sKey,
java.lang.Object oObj)
throws java.lang.NullPointerException
Set value at internal collection
sKey - Field NameoObj - Field Value
java.lang.NullPointerException - If sKey is null
public java.lang.Object put(java.lang.Object sKey,
java.lang.Object oObj)
throws java.lang.NullPointerException
Set value at internal collection
If internal collection previously contained a mapping for this key, the old value is replaced.
put in interface java.util.MapsKey - Field NameoObj - Field Value
java.lang.NullPointerException - If sKey is null
public void put(java.lang.String sKey,
int iVal)
Set value at internal collection
sKey - Field NameiVal - Field Value
public void put(java.lang.String sKey,
short iVal)
Set value at internal collection
sKey - Field NameiVal - Field Value
public void put(java.lang.String sKey,
java.util.Date dtVal)
Set value at internal collection
sKey - Field NamedtVal - Field Value
public void put(java.lang.String sKey,
java.sql.Time tmVal)
Set value at internal collection
sKey - Field NametmVal - Field Value
public void put(java.lang.String sKey,
java.lang.String sDate,
java.text.SimpleDateFormat oPattern)
throws java.text.ParseException
sKey - String Field NamesDate - String Field Value as StringoPattern - SimpleDateFormat Date format to be used
java.text.ParseException
public void put(java.lang.String sKey,
double dVal)
Put double value at internal collection
sKey - Field NamedVal - Field Value
public void put(java.lang.String sKey,
java.math.BigDecimal oDecVal)
Put BigDecimal value at internal collection
sKey - Field NameoDecVal - Field Value
public void put(java.lang.String sKey,
java.lang.String sDecVal,
java.text.DecimalFormat oPattern)
throws java.text.ParseException
sKey - String Field NamesDecVal - Field Name as StringoPattern - DecimalFormat
java.text.ParseException
public void put(java.lang.String sKey,
float fVal)
Set value at internal collection
sKey - Field NamefVal - Field Value
public void put(java.lang.String sKey,
java.io.File oFile)
throws java.io.FileNotFoundException
Set reference to a binary file for a long field
sKey - Field NameoFile - File Object
java.io.FileNotFoundException
public void put(java.lang.String sKey,
byte[] aBytes)
Set reference to a byte array for a long field
Use this method only for binding LONGVARBINARY or BLOB fields
sKey - Field NameaBytes - byte array
public void put(java.lang.String sKey,
char[] aChars)
Set reference to a character array for a long field
Use this method only for binding LONGVARCHAR or CLOB fields
sKey - Field NameaChars - char array
public void put(java.lang.String sKey,
java.lang.String sData,
int iSQLType)
throws java.io.FileNotFoundException,
java.lang.IllegalArgumentException,
java.lang.NullPointerException
Set value at internal collection
sKey - Field NamesData - Field Value as a String. If iSQLType is BLOB or LONGVARBINARY
then sData is interpreted as a full file path uri.iSQLType - SQL Type for field
java.lang.NullPointerException - If sKey is null
java.lang.IllegalArgumentException - If SQL Type is not recognized.
Recognized types are { CHAR, VARCHAR, LONGVARCHAR, CLOB, INTEGER, SMALLINT,
DATE, TIMESTAMP, DOUBLE, FLOAT, REAL, DECIMAL, NUMERIC, BLOB, LONGVARBINARY }
java.io.FileNotFoundException
public void putAll(java.util.Properties oPropsCollection)
throws java.io.FileNotFoundException
Load values from a Properties object
java.io.FileNotFoundExceptionpublic void putAll(java.util.Map oMap)
Put values from a Map into this DBPersist instance
allcaps has no effect on input data when calling this method
putAll in interface java.util.MapoMap - public void remove(java.lang.String sKey)
Remove a value from internal collection
sKey - Field Namepublic java.lang.Object remove(java.lang.Object oKey)
Remove a value from internal collection
remove in interface java.util.MapoKey - Field Name
public void replace(java.lang.String sKey,
java.lang.Object oObj)
Replace a value from internal collection
sKey - Field NameoObj - New Value
public void replace(java.lang.String sKey,
int iVal)
Replace a value from internal collection
sKey - Field NameiVal - New int value
public void replace(java.lang.String sKey,
short iVal)
Replace a value from internal collection
sKey - Field NameiVal - New short value
public void replace(java.lang.String sKey,
float fVal)
Replace a value from internal collection
sKey - Field Namepublic void toLowerCase(java.lang.String sKey)
sKey - Stringpublic void toUpperCase(java.lang.String sKey)
sKey - String
public boolean store(JDCConnection oConn)
throws java.sql.SQLException
Store a register at database representing this instance of DBPersist
Insertions and updates : The store method automatically manages register insertions and updates. If the stored object already exists at database then it is updated, if it does not exists then it is inserted. A primary key violation error is never thrown so ther is no need to call delete() method before re-writing an existing object.
NULL fields : All values not set calling put() methods for DBPersist
will be assumed to be NULL. If a not nullable field is not set then an
SQLException will be raised.
On storing an already existing object all values will we overwrited,
so is a DBPersist is not fully loaded before storing it, values not set
by calling put() methods that already were present at database will be lost.
oConn - Database Connection
java.sql.SQLException
public boolean delete(JDCConnection oConn)
throws java.sql.SQLException
Delete a register from database
The deleted register will be the one matching this DBPersist primary key, as set at constructor or load() method.
oConn - Database connection
java.sql.SQLException
public boolean exists(JDCConnection oConn)
throws java.sql.SQLException
Find out whether or not a particular register exists at database
oConn - database connection
java.sql.SQLException
public java.lang.String toXML(java.lang.String sIdent,
java.lang.String sDelim)
throws java.lang.IllegalStateException
Get an XML dump for the DBPersist values
sIdent - Number of blank spaces for left padding at every line.sDelim - Line delimiter (usually "\n" or "\r\n")
java.lang.IllegalStateExceptionpublic java.lang.String toXML(java.lang.String sIdent)
Get an XML dump for the DBPersist values.
Lines are delimited by a single Line Feed CHR(10) '\n' character.
sIdent - Number of blank spaces for left padding at every line.
public java.lang.String toXML()
Get an XML dump for the DBPersist values.
No left padding is placed to the left of each line.
Lines are delimited by a single Line Feed CHR(10) '\n' character.
public void parseXML(java.lang.String sXMLFilePath)
throws org.xml.sax.SAXException,
org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException,
org.xml.sax.SAXParseException,
java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
Load an XML String into DBPersist internal collection.
Each tag
Example of input file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ACLUser>
<gu_user>32f4f56fda343a5898c15a021203dd82</gu_user>
<id_domain>1026</id_domain>
<nm_user>The 7th Guest</nm_user>
<tx_pwd>123456</tx_pwd>
<tx_main_email>guest7@domain.com</tx_main_email>
<tx_alt_email>admin@hipergate.com</tx_alt_email>
<dt_last_updated>Fri, 29 Aug 2003 13:30:00 GMT+0130</dt_last_updated>
<tx_comments><![CDATA[Sôme ñasti & ïnternational chars stuff]]></tx_comments>
</ACLUser>
sXMLFilePath - XML Path to XML file to parse
org.xml.sax.SAXException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXParseException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationExceptionprotected java.util.HashMap changelog(DBPersist oOldInstance)
oOldInstance - DBPersist
protected static java.lang.String getUIdFromName(JDCConnection oConn,
java.lang.Integer iDomainId,
java.lang.String sInstanceNm,
java.lang.String sStoredProc)
throws java.sql.SQLException
Internal method for being called by inherited classes
Searches an object instance GUID from its unique name
oConn - Database ConnectioniDomainId - Domain IdentifiersInstanceNm - Instance NamesStoredProc - Stored Procedure or PL/pgSQL Function Name
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||