com.ihr.xbrl.store
Class StorageEvent

java.lang.Object
  extended by com.ihr.xbrl.store.StorageEvent

public class StorageEvent
extends java.lang.Object

Author:
Ignacio

Field Summary
static int EXCEPTION
          The storage event contains an exception
static int OK
          Storage successful
 
Constructor Summary
StorageEvent(StoreXBRLThread thread, int status, java.lang.Exception e)
           
StorageEvent(StoreXBRLThread thread, int status, XBRLInstance pojoInstance, XBRLInstance regularInstance, DTSContainer pojoContainer, DTSContainer regularContainer, java.lang.String message)
          Creates an StorageEvent object to be sent to parent applications.
 
Method Summary
 java.lang.Exception getException()
           
 java.lang.String getMessage()
           
 DTSContainer getPojoContainer()
           
 XBRLInstance getPojoInstance()
           
 DTSContainer getRegularContainer()
           
 XBRLInstance getRegularInstance()
           
 int getStatus()
          Possible values are OK or EXCEPTION
 StoreXBRLThread getThread()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static final int OK
Storage successful

See Also:
Constant Field Values

EXCEPTION

public static final int EXCEPTION
The storage event contains an exception

See Also:
Constant Field Values
Constructor Detail

StorageEvent

public StorageEvent(StoreXBRLThread thread,
                    int status,
                    XBRLInstance pojoInstance,
                    XBRLInstance regularInstance,
                    DTSContainer pojoContainer,
                    DTSContainer regularContainer,
                    java.lang.String message)
Creates an StorageEvent object to be sent to parent applications.

Parameters:
thread - the thread who is sending the event
status - this is OK or EXCEPTION
pojoInstance - This is the POJO object model instance document
regularInstance - This is the RS object model instance document
pojoContainer - This is the POJO object model DTSContainer
regularContainer - This is the RS object model DTSContainer
message - This is an error message string in case of any exist

StorageEvent

public StorageEvent(StoreXBRLThread thread,
                    int status,
                    java.lang.Exception e)
Parameters:
status - integer
e - Exception
Method Detail

getPojoInstance

public XBRLInstance getPojoInstance()
Returns:
the instance

getPojoContainer

public DTSContainer getPojoContainer()
Returns:
the dts

getMessage

public java.lang.String getMessage()
Returns:
the error message if any

getRegularInstance

public XBRLInstance getRegularInstance()
Returns:
the regularInstance

getRegularContainer

public DTSContainer getRegularContainer()
Returns:
the regularContainer

getStatus

public int getStatus()
Possible values are OK or EXCEPTION

Returns:
the status see StorageService for more information

getException

public java.lang.Exception getException()
Returns:
the exception error generated during the storage process

getThread

public StoreXBRLThread getThread()
Returns:
the thread


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa