|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.iba.definition.service.IBADefinitionDBService
Database level serverside service used by the remote IBAService. Serverside
use only.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) static class |
IBADefinitionDBService.CachedDefaultViewReset
|
static class |
IBADefinitionDBService.DefaultViewbyPathCache
|
Field Summary | |
private static boolean |
CACHE_VERBOSE
|
private static String |
CLASSNAME
|
static String |
COPY_ATTRIBUTE_DEFINITION_UNDER_DEF
|
static String |
COPY_ATTRIBUTE_DEFINITION_UNDER_ORG
|
static String |
COPY_ATTRIBUTE_ORGANIZER
|
private CRC32 |
crc
|
static String |
CREATE_ATTRIBUTE_DEFINITION
|
static String |
CREATE_ATTRIBUTE_ORGANIZER
|
static String |
DELETE_ATTRIBUTE
|
static long |
EXTERNALIZATION_VERSION_UID
|
private IBADefinitionCache |
ibaDefinitionCache
|
private static boolean |
IS_HIERARCHICAL_DEFINITION_ALLOWED
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static ArrayList |
providers
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private StandardIBADefinitionService |
service
|
private UnitCache |
unitCache
|
static String |
UPDATE_ATTRIBUTE_DEFINITION
|
static String |
UPDATE_ATTRIBUTE_HIERARCHY
|
static String |
UPDATE_ATTRIBUTE_ORGANIZER
|
private static IBADefinitionDBService.DefaultViewbyPathCache |
viewCache
|
Constructor Summary | |
IBADefinitionDBService()
|
Method Summary | |
private void |
addListenersToTransaction(Transaction trx,
String name)
|
static void |
addTransactionListenerProvider(TransactionListenerProvider provider)
|
private void |
checkUniqueRootAttributeDefinition(String sourceName,
AttributeHierarchyChild org,
boolean isCreate)
|
private void |
clearIBADefinitionCache()
|
AttributeHierarchyChild |
copyAttributeDefinition(AttributeDefNodeView sourceNode,
AttributeDefNodeView targetParentNode)
Copies the current Attribute Definition node and its children and attached them to the new parent node. |
AttributeHierarchyChild |
copyAttributeDefinition(AttributeDefNodeView sourceNode,
AttributeOrgNodeView targetParentNode)
Copies the current Attribute Definition node and its children and attached them to the new Attribute Organizer parent node. |
AttributeHierarchyChild |
copyAttributeOrganizer(AttributeOrgNodeView sourceNode,
AttributeOrgNodeView targetParentNode)
Copies the current Attribute Organizer node and its children and attached them to the new parent node. |
AttributeHierarchyChild |
createAttributeDefinition(AttributeDefDefaultView attributeDef)
Creates the given attribute definition. |
AttributeHierarchyChild |
createAttributeOrganizer(AttributeOrgDefaultView attributeOrg)
Creates the given attribute organizer. |
void |
deleteAttributeDefinition(AttributeDefDefaultView attributeDef)
Deletes the given attribute definition. |
void |
deleteAttributeDefinition(AttributeDefNodeView node)
Deletes the given attribute definitionr. |
void |
deleteAttributeOrganizer(AttributeOrgDefaultView attributeOrg)
Deletes the given attribute organizer. |
void |
deleteAttributeOrganizer(AttributeOrgNodeView node)
Deletes the given attribute organizer. |
protected void |
getAllAttributeChildren(AttributeHierarchyChild[] children,
Vector target)
|
private AttributeHierarchyChild[] |
getAttributeChildren(AbstractAttributeDefinizerDefaultView node)
|
AttributeHierarchyChild[] |
getAttributeChildren(AbstractAttributeDefinizerNodeView node)
Returns all the direct children of the given attribute node. |
AttributeHierarchyChild |
getAttributeDefDefaultView(AttributeDefNodeView attributeDef)
Gets the attribute definition given the attribute node. |
AttributeHierarchyChild |
getAttributeDefDefaultViewByPath(String path)
Gets the attribute definition given the attribute node. |
AttributeDefinition |
getAttributeDefinitionByObjectId(ObjectIdentifier oi)
|
AttributeOrganizer[] |
getAttributeOrganizerRoots()
Returns the root (first) level of all the Attribute Organizer. |
AttributeHierarchyChild |
getAttributeOrgDefaultView(AttributeOrgNodeView attributeOrg)
Returns the lite attribute organizer given the node. |
protected AttributeHierarchyChild[] |
getHeavyAttributeChildren(AttributeHierarchyChild node)
|
private MeasurementSystem |
getMeasurementSystem(String name)
|
private StandardIBADefinitionService |
getStandardIBADefinitionService()
|
private boolean |
hasValidLineage(ObjectIdentifier nodeID,
Persistable parent)
|
private boolean |
hasValidName(String sourceName,
AttributeHierarchyChild[] siblings)
|
private void |
initIBADefinitionCache()
|
protected boolean |
isInUse(AbstractAttributeDefinition aad)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(IBADefinitionDBService thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
recurseCopyAttribute(AttributeHierarchyChild parent,
ObjectIdentifier targetParentID,
AttributeHierarchyChild[] children)
|
protected void |
recurseDeleteAttribute(AttributeHierarchyChild[] children)
|
protected void |
recurseUpdateAttributeDefinition(AttributeHierarchyChild parent,
AttributeHierarchyChild[] children)
|
AttributeHierarchyChild |
refreshAttributeDefDefaultView(AttributeDefDefaultView attributeDef)
Refreshes the given attribute definition by reloading its state from the DB. |
AttributeHierarchyChild |
refreshAttributeDefNodeView(AttributeDefNodeView attributeDefNode)
Refreshes the given attribute definition by reloading its state from the DB. |
AttributeHierarchyChild |
refreshAttributeOrgDefaultView(AttributeOrgDefaultView attributeOrg)
Refreshes the given attribute organize by reloading its state from the DB. |
AttributeHierarchyChild |
refreshAttributeOrgNodeView(AttributeOrgNodeView attributeOrgNode)
Refreshes the given attribute organizer by reloading its state from the DB. |
static void |
removeTransactionListenerProvider(TransactionListenerProvider provider)
|
void |
setStarndardIBADefinitionService(StandardIBADefinitionService a_service)
|
AttributeHierarchyChild |
updateAttributeDefinition(AttributeDefDefaultView node)
Updates the current Attribute Definition by saving its state to the DB. |
AttributeHierarchyChild |
updateAttributeDefinition(AttributeDefNodeView node)
Updates the current Attribute Definition by saving its state to the DB. |
AttributeHierarchyChild |
updateAttributeOrganizer(AttributeOrgDefaultView node)
Updates the current Attribute Organizer by saving its state to the DB. |
AttributeHierarchyChild |
updateAttributeOrganizer(AttributeOrgNodeView node)
Updates the current Attribute Organizer by saving its state to the DB. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String COPY_ATTRIBUTE_DEFINITION_UNDER_DEF
public static final String COPY_ATTRIBUTE_DEFINITION_UNDER_ORG
public static final String COPY_ATTRIBUTE_ORGANIZER
public static final String CREATE_ATTRIBUTE_DEFINITION
public static final String CREATE_ATTRIBUTE_ORGANIZER
public static final String UPDATE_ATTRIBUTE_HIERARCHY
public static final String UPDATE_ATTRIBUTE_DEFINITION
public static final String UPDATE_ATTRIBUTE_ORGANIZER
public static final String DELETE_ATTRIBUTE
private CRC32 crc
private static IBADefinitionDBService.DefaultViewbyPathCache viewCache
private static boolean CACHE_VERBOSE
private static boolean IS_HIERARCHICAL_DEFINITION_ALLOWED
private static ArrayList providers
private IBADefinitionCache ibaDefinitionCache
private UnitCache unitCache
private StandardIBADefinitionService service
Constructor Detail |
public IBADefinitionDBService()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(IBADefinitionDBService thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public AttributeHierarchyChild copyAttributeDefinition(AttributeDefNodeView sourceNode, AttributeOrgNodeView targetParentNode) throws IBADefinitionException, NotAuthorizedException, WTException
sourceNode
- targetParentNode
-
IBADefinitionException
NotAuthorizedException
WTException
public AttributeHierarchyChild copyAttributeOrganizer(AttributeOrgNodeView sourceNode, AttributeOrgNodeView targetParentNode) throws IBADefinitionException, NotAuthorizedException, WTException
sourceNode
- targetParentNode
-
IBADefinitionException
NotAuthorizedException
WTException
public AttributeHierarchyChild copyAttributeDefinition(AttributeDefNodeView sourceNode, AttributeDefNodeView targetParentNode) throws IBADefinitionException, NotAuthorizedException, WTException
sourceNode
- targetParentNode
-
IBADefinitionException
NotAuthorizedException
WTException
public AttributeHierarchyChild createAttributeDefinition(AttributeDefDefaultView attributeDef) throws IBADefinitionException, NotAuthorizedException, WTException
attributeDef
-
IBADefinitionException
NotAuthorizedException
WTException
public AttributeHierarchyChild createAttributeOrganizer(AttributeOrgDefaultView attributeOrg) throws IBADefinitionException, NotAuthorizedException, WTException
attributeOrg
-
IBADefinitionException
NotAuthorizedException
WTException
public void deleteAttributeDefinition(AttributeDefDefaultView attributeDef) throws IBADefinitionException, NotAuthorizedException, WTException
attributeDef
-
IBADefinitionException
NotAuthorizedException
WTException
public void deleteAttributeOrganizer(AttributeOrgDefaultView attributeOrg) throws IBADefinitionException, NotAuthorizedException, WTException
attributeOrg
-
IBADefinitionException
NotAuthorizedException
WTException
public void deleteAttributeDefinition(AttributeDefNodeView node) throws IBADefinitionException, NotAuthorizedException, WTException
node
-
IBADefinitionException
NotAuthorizedException
WTException
public void deleteAttributeOrganizer(AttributeOrgNodeView node) throws IBADefinitionException, NotAuthorizedException, WTException
node
-
IBADefinitionException
NotAuthorizedException
WTException
public AttributeHierarchyChild[] getAttributeChildren(AbstractAttributeDefinizerNodeView node) throws WTException
node
-
WTException
public AttributeHierarchyChild getAttributeDefDefaultView(AttributeDefNodeView attributeDef) throws WTException
attributeDef
-
WTException
public AttributeHierarchyChild getAttributeDefDefaultViewByPath(String path) throws WTException
path
-
WTException
public AttributeOrganizer[] getAttributeOrganizerRoots() throws WTException
WTException
public AttributeHierarchyChild getAttributeOrgDefaultView(AttributeOrgNodeView attributeOrg) throws WTException
attributeOrg
-
WTException
public AttributeHierarchyChild refreshAttributeOrgDefaultView(AttributeOrgDefaultView attributeOrg) throws WTException
attributeOrg
-
WTException
public AttributeHierarchyChild refreshAttributeDefDefaultView(AttributeDefDefaultView attributeDef) throws WTException
attributeDef
-
WTException
public AttributeHierarchyChild refreshAttributeDefNodeView(AttributeDefNodeView attributeDefNode) throws WTException
attributeDefNode
-
WTException
public AttributeHierarchyChild refreshAttributeOrgNodeView(AttributeOrgNodeView attributeOrgNode) throws WTException
attributeOrgNode
-
WTException
public AttributeHierarchyChild updateAttributeDefinition(AttributeDefDefaultView node) throws IBADefinitionException, NotAuthorizedException, WTException
node
-
IBADefinitionException
NotAuthorizedException
WTException
public AttributeHierarchyChild updateAttributeOrganizer(AttributeOrgDefaultView node) throws IBADefinitionException, NotAuthorizedException, WTException
node
-
IBADefinitionException
NotAuthorizedException
WTException
public AttributeHierarchyChild updateAttributeOrganizer(AttributeOrgNodeView node) throws IBADefinitionException, NotAuthorizedException, WTException
node
-
IBADefinitionException
NotAuthorizedException
WTException
public AttributeHierarchyChild updateAttributeDefinition(AttributeDefNodeView node) throws IBADefinitionException, NotAuthorizedException, WTException
node
-
IBADefinitionException
NotAuthorizedException
WTException
public static void addTransactionListenerProvider(TransactionListenerProvider provider)
public static void removeTransactionListenerProvider(TransactionListenerProvider provider)
private void addListenersToTransaction(Transaction trx, String name)
protected AttributeHierarchyChild[] getHeavyAttributeChildren(AttributeHierarchyChild node) throws IBAException, WTException
IBAException
WTException
protected void recurseDeleteAttribute(AttributeHierarchyChild[] children) throws IBADefinitionException, IBAException, WTException
IBADefinitionException
IBAException
WTException
protected void recurseCopyAttribute(AttributeHierarchyChild parent, ObjectIdentifier targetParentID, AttributeHierarchyChild[] children) throws IBAException, WTException
IBAException
WTException
protected void recurseUpdateAttributeDefinition(AttributeHierarchyChild parent, AttributeHierarchyChild[] children) throws IBAException, WTException
IBAException
WTException
protected void getAllAttributeChildren(AttributeHierarchyChild[] children, Vector target) throws IBAException, WTException
IBAException
WTException
private AttributeHierarchyChild[] getAttributeChildren(AbstractAttributeDefinizerDefaultView node) throws IBAException, WTException
IBAException
WTException
private boolean hasValidLineage(ObjectIdentifier nodeID, Persistable parent) throws WTException
WTException
private boolean hasValidName(String sourceName, AttributeHierarchyChild[] siblings)
private void checkUniqueRootAttributeDefinition(String sourceName, AttributeHierarchyChild org, boolean isCreate) throws IBAException, IBADefinitionException, WTException
IBAException
IBADefinitionException
WTException
private MeasurementSystem getMeasurementSystem(String name) throws WTException
WTException
protected boolean isInUse(AbstractAttributeDefinition aad) throws WTException, IBADefinitionException
WTException
IBADefinitionException
public void setStarndardIBADefinitionService(StandardIBADefinitionService a_service)
private void clearIBADefinitionCache()
private void initIBADefinitionCache()
public AttributeDefinition getAttributeDefinitionByObjectId(ObjectIdentifier oi) throws WTException
WTException
private StandardIBADefinitionService getStandardIBADefinitionService()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |