Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.ejb.importrecord.persist
Class DisguiseRecordPersistBean  view DisguiseRecordPersistBean download DisguiseRecordPersistBean.java

java.lang.Object
  extended bycom.flexstor.ejb.EjbBean
      extended bycom.flexstor.ejb.PersistSessionBean
          extended bycom.flexstor.ejb.importrecord.persist.DisguiseRecordPersistBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class DisguiseRecordPersistBean
extends com.flexstor.ejb.PersistSessionBean
implements javax.ejb.SessionBean

DisguiseRecordPersist

Inserts assets in the database.
The DisguiseRecordPersist bean will also take care of creating buckets and elements
for those new assets as well as inserting role information for each of them.
The bean will update asset and role information if the record is already present in the
database.

Uses cache: no State Management Type: Stateless

Configurable properties in flexdm.properties:

NONE


Field Summary
static java.lang.String IDENTIFIER
           
 
Fields inherited from class com.flexstor.ejb.PersistSessionBean
C_DUPLICATE_RECORD
 
Fields inherited from class com.flexstor.ejb.EjbBean
beanName, sCacheDirectory, sEJBVendor
 
Constructor Summary
DisguiseRecordPersistBean()
           
 
Method Summary
 com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData checkForExisting(com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData data)
          Parses through the entire data object checking for the existence of all buckets in the database.
 void ejbCreate()
          This will Create a new Persist Object.
 com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData insertRecord(com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData data)
          Insert or updates the asset and role information in its respective tables.
 
Methods inherited from class com.flexstor.ejb.PersistSessionBean
cacheExists, closeConnection, closePhysicalConnection, dateFormat, ejbRemove, fromCache, getConnection, getDisguiseStructure, getPhysicalConnection, getSequenceFromBean, getSequenceFromBean, getSequenceFromBean, toCache, xCache
 
Methods inherited from class com.flexstor.ejb.EjbBean
assertBoolean, assertEmptyString, assertNull, buildInitialContext, cacheEnabled, ejbActivate, ejbPassivate, getBeanHome, getBooleanProperty, getCacheDirectory, getEJBObject, getInitialContext, getIntegerProperty, getIntegerProperty, getProperty, getProperty, getSessionContext, keepAlive, setSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.SessionBean
ejbActivate, ejbPassivate, ejbRemove, setSessionContext
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

DisguiseRecordPersistBean

public DisguiseRecordPersistBean()
Method Detail

ejbCreate

public void ejbCreate()
               throws com.flexstor.common.exceptions.ejb.EjbException,
                      java.rmi.RemoteException,
                      javax.ejb.CreateException
This will Create a new Persist Object.


insertRecord

public com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData insertRecord(com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData data)
                                                                            throws com.flexstor.common.exceptions.ejb.EjbException,
                                                                                   java.rmi.RemoteException
Insert or updates the asset and role information in its respective tables. It also insert bucket info (not update). Transaction Attribute: Required


checkForExisting

public com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData checkForExisting(com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData data)
                                                                                throws com.flexstor.common.exceptions.ejb.EjbException,
                                                                                       java.rmi.RemoteException
Parses through the entire data object checking for the existence of all buckets in the database. If a bucket (normal or element) exists, add the record id to the data object; otherwise set the record id value to zero. Transaction Attribute: Required