com.sun.mdm.index.ops
Class SystemObjectDB

java.lang.Object
  extended bycom.sun.mdm.index.ops.ObjectPersistenceService
      extended bycom.sun.mdm.index.ops.SystemObjectDB
All Implemented Interfaces:
java.io.Serializable

public final class SystemObjectDB
extends ObjectPersistenceService

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.mdm.index.ops.ObjectPersistenceService
DATEFORMAT, DBDATEFORMAT
 
Constructor Summary
SystemObjectDB()
          default constructor
 
Method Summary
 void create(java.sql.Connection conn, java.util.HashMap opsmap, SystemObject sysobj)
          Persists a new SystemObject and its children records into database.
 SystemObject get(java.sql.Connection conn, java.util.HashMap opsmap, java.lang.String systemcode, java.lang.String lid)
          Retrieves SystemObject record and its children from database.
 void remove(java.sql.Connection conn, java.util.HashMap opsmap, SystemObject sysobj)
          Removes an existing SystemObject and its children records from database.
 void update(java.sql.Connection conn, java.util.HashMap opsmap, SystemObject sysobj)
          Updates an existing SystemObject and its chidlren records in the database.
 
Methods inherited from class com.sun.mdm.index.ops.ObjectPersistenceService
addobject, addobject, addobject, addobject, addobject, addobject, finalize, getStatement, getValue, init, log, setParam, setParamBlob, setParamBlob, sql2str, strfmt
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemObjectDB

public SystemObjectDB()
               throws OPSException
default constructor

Throws:
OPSException - if an error occurred.
Method Detail

create

public void create(java.sql.Connection conn,
                   java.util.HashMap opsmap,
                   SystemObject sysobj)
            throws OPSException
Persists a new SystemObject and its children records into database.

Parameters:
conn - JDBC connection.
opsmap - Map of entity ops handles.
sysobj - SystemObject to persist.
Throws:
OPSException - if an error occurred.

get

public SystemObject get(java.sql.Connection conn,
                        java.util.HashMap opsmap,
                        java.lang.String systemcode,
                        java.lang.String lid)
                 throws OPSException
Retrieves SystemObject record and its children from database.

Parameters:
conn - JDBC connection.
opsmap - Map of entity ops handles.
systemcode - System code.
lid - Local ID.
Returns:
SystemObject
Throws:
OPSException - if an error occurred.

remove

public void remove(java.sql.Connection conn,
                   java.util.HashMap opsmap,
                   SystemObject sysobj)
            throws OPSException
Removes an existing SystemObject and its children records from database.

Parameters:
conn - JDBC connection.
opsmap - Map of entity ops handles.
sysobj - SystemObject to remove.
Throws:
OPSException - if an error occurred.

update

public void update(java.sql.Connection conn,
                   java.util.HashMap opsmap,
                   SystemObject sysobj)
            throws OPSException
Updates an existing SystemObject and its chidlren records in the database.

Parameters:
conn - JDBC connection.
opsmap - Map of entity ops handles.
sysobj - SystemObject to update.
Throws:
OPSException - if an error occurred.


Sun Microsystems, Inc.