|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.iba.value.service.LoadValue
Field Summary | |
private static String |
CURRENT_IBA_CONTAINER
|
private static String |
CURRENT_IBA_CONTAINER_BASE_NAME
|
private static String |
CURRENT_IBA_CONTAINER_DEPENDENCIES
|
private static String |
CURRENT_IBA_CONTAINER_NAME
|
private static String |
CURRENT_IBA_CONTAINER_STATUS
|
private static String |
CURRENT_IBAHOLDER
|
private static String |
CURRENT_IBAHOLDER_REFVALUES
|
private static String |
CURRENT_IBAHOLDER_STATUS
|
private static IBAValueDBServiceInterface |
dbService
|
private static String |
DEFAULT_IBA_CONTAINER
|
private static Hashtable |
REFERENCEABLE_CACHE
|
private static String |
SERVICE_NAME
|
private static Boolean |
STATUS_FAILED
|
private static Boolean |
STATUS_OKAY
|
private static String |
THREAD_DEFINITION_CACHE
|
private static boolean |
VERBOSE
|
Constructor Summary | |
LoadValue()
|
Method Summary | |
private static boolean |
addReferenceToCache(String dependency_id,
ReferenceValueDefaultView reference)
|
private static boolean |
addReferenceToCache(String definition,
String locator,
String identifier,
ReferenceValueDefaultView reference)
|
static IBAHolder |
applySoftAttributes(IBAHolder ibaholder)
|
private static IBAHolder |
applyTypeAttributeDefaults(IBAHolder ibaholder)
|
static boolean |
beginIBAContainer()
Programmatic equivalent to BeginIBAContainer load file line. |
static boolean |
beginIBAContainer(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Processes "BeginIBAContainer" lines from a csv load file. |
static boolean |
beginIBAContainer(String name)
Programmatic equivalent to BeginIBAContainer load file line. |
private static void |
clearCachedContainerValues(String name)
|
private static void |
clearCachedHolderValues()
|
static AbstractValueView |
cloneAbstractValueView(AbstractValueView fromAVV,
AbstractValueView toAVV)
Copies the value from fromAVV to toAVV |
static boolean |
createIBAValue(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
|
static void |
createOrUpdateAttributeValueInContainer(DefaultAttributeContainer container,
AbstractValueView newAVV)
|
static boolean |
createOrUpdateIBAValue(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Create or Update IBA Value of a IBAHolder (such as WTPart) If the specified IBA value in the csv load file does not already exist in the IBAHolder, a new IBA value would be created for that IBAHolder. |
private static String |
decodeComma(String str)
|
private static void |
dumpCache()
|
static boolean |
endIBAContainer()
Programmatic access equivalent to EndIBAContainer load file line. |
static boolean |
endIBAContainer(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Processes "EndIBAContainer" lines from a csv load file. |
static boolean |
endIBAHolder(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Processes "endIBAHolder" lines from a csv load file. |
private static boolean |
establishCachedContainer(String name)
|
static boolean |
establishCurrentIBAHolder(IBAHolder holder)
|
private static boolean |
exposeCachedContainer()
|
static AttributeContainer |
extractDefaultIBAContainer()
Extract the default IBA AttributeContainer from the cache. |
static AttributeContainer |
extractIBAContainer(String name)
Extract the an IBA AttributeContainer from the loaders method context cache. |
static AbstractAttributeDefinizerView |
getCachedAttributeDefinition(String definition_path)
|
private static IBAHolder |
getCachedHolder()
|
private static Boolean |
getCachedHolderStatus()
|
static ReferenceValueDefaultView |
getCachedReferenceValue(String dependency_id)
|
static ReferenceValueDefaultView |
getCachedReferenceValue(String dependent_definition,
String dependent_locator,
String dependent_identifier)
|
private static Object |
getCacheValue(String key)
|
private static Hashtable |
getContextCache()
|
private static AttributeContainer |
getCurrentCachedContainer()
|
private static String |
getCurrentCachedContainerName()
|
private static Boolean |
getCurrentCachedContainerStatus()
|
static IBAHolder |
getCurrentIBAHolder()
|
static IBAReferenceable |
getIBAReferenceable(String locator_name,
String identifier)
|
private static void |
initTypeDefinitions()
|
private static AbstractValueView |
internalCreateValue(AbstractAttributeDefinizerView def,
String value1,
String value2)
|
static AbstractValueView |
newBooleanValue(AbstractAttributeDefinizerView def,
String s_value)
|
static AbstractValueView |
newFloatValue(AbstractAttributeDefinizerView def,
String s_value,
String s_precision)
|
static AbstractValueView |
newIntegerValue(AbstractAttributeDefinizerView def,
String svalue)
|
static AbstractValueView |
newRatioValue(AbstractAttributeDefinizerView def,
String s_value,
String s_denominator)
|
static AbstractValueView |
newReferenceValue(AbstractAttributeDefinizerView def,
String s_class,
String s_identifier)
|
static AbstractValueView |
newStringValue(AbstractAttributeDefinizerView def,
String svalue)
|
static AbstractValueView |
newTimestampValue(AbstractAttributeDefinizerView def,
String s_value)
|
static AbstractValueView |
newUnitValue(AbstractAttributeDefinizerView def,
String s_value,
String s_precision)
|
static AbstractValueView |
newURLValue(AbstractAttributeDefinizerView def,
String s_value,
String description)
|
static boolean |
oldCreateIBAValue(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
|
private static String |
publicContainerKey(String name)
|
private static IBAHolder |
refreshSoftAttributes(IBAHolder ibaholder)
|
static boolean |
saveCurrentIBAHolder()
|
private static boolean |
setCachedContainerStatus(Boolean status)
|
private static boolean |
setCachedHolderStatus(Boolean status)
|
static boolean |
setCurrentCachedContainer(AttributeContainer a_container)
|
static void |
setType(Typed the_typed,
String subtypedef)
|
private static IBAHolder |
storeSoftAttributes(IBAHolder ibaholder)
|
private static boolean |
updateIBAHolder(IBAHolder holder)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String DEFAULT_IBA_CONTAINER
private static final String CURRENT_IBA_CONTAINER
private static final String CURRENT_IBA_CONTAINER_STATUS
private static final String CURRENT_IBA_CONTAINER_NAME
private static final String CURRENT_IBA_CONTAINER_DEPENDENCIES
private static final String CURRENT_IBA_CONTAINER_BASE_NAME
private static final String THREAD_DEFINITION_CACHE
private static final String CURRENT_IBAHOLDER
private static final String CURRENT_IBAHOLDER_STATUS
private static final Boolean STATUS_FAILED
private static final Boolean STATUS_OKAY
private static final String SERVICE_NAME
private static Hashtable REFERENCEABLE_CACHE
private static final String CURRENT_IBAHOLDER_REFVALUES
private static final boolean VERBOSE
private static IBAValueDBServiceInterface dbService
Constructor Detail |
public LoadValue()
Method Detail |
public static boolean endIBAHolder(Hashtable nv, Hashtable cmd_line, Vector return_objects)
nv
- Name/Value pair containing the part master name/numberkcmd_line
- command line argument that can contain supplemental load datareturn_objects
- Vector
of the object(s) created by this method.
Used by wt.load.StandardLoadService
for accurate user feedback messages.public static boolean beginIBAContainer(Hashtable nv, Hashtable cmd_line, Vector return_objects)
nv
- Name/Value pair containing the part master name/numberkcmd_line
- command line argument that can contain supplemental load datareturn_objects
- Vector
of the object(s) created by this method.
Used by wt.load.StandardLoadService
for accurate user feedback messages.public static boolean beginIBAContainer()
public static boolean beginIBAContainer(String name)
public static boolean setCurrentCachedContainer(AttributeContainer a_container)
public static boolean endIBAContainer(Hashtable nv, Hashtable cmd_line, Vector return_objects)
nv
- Name/Value pair containing the part master name/numberkcmd_line
- command line argument that can contain supplemental load datareturn_objects
- Vector
of the object(s) created by this method.
Used by wt.load.StandardLoadService
for accurate user feedback messages.public static boolean endIBAContainer()
public static AttributeContainer extractDefaultIBAContainer()
public static AttributeContainer extractIBAContainer(String name)
private static boolean establishCachedContainer(String name)
private static boolean exposeCachedContainer()
private static boolean updateIBAHolder(IBAHolder holder)
public static boolean establishCurrentIBAHolder(IBAHolder holder)
public static IBAHolder getCurrentIBAHolder()
public static boolean saveCurrentIBAHolder()
private static IBAHolder getCachedHolder()
private static Boolean getCachedHolderStatus()
private static void clearCachedHolderValues()
private static void clearCachedContainerValues(String name)
private static String publicContainerKey(String name)
private static AttributeContainer getCurrentCachedContainer()
private static String getCurrentCachedContainerName()
private static Boolean getCurrentCachedContainerStatus()
private static Object getCacheValue(String key)
private static boolean addReferenceToCache(String definition, String locator, String identifier, ReferenceValueDefaultView reference)
private static boolean addReferenceToCache(String dependency_id, ReferenceValueDefaultView reference)
private static boolean setCachedHolderStatus(Boolean status)
private static boolean setCachedContainerStatus(Boolean status)
public static AbstractAttributeDefinizerView getCachedAttributeDefinition(String definition_path)
public static ReferenceValueDefaultView getCachedReferenceValue(String dependency_id)
public static ReferenceValueDefaultView getCachedReferenceValue(String dependent_definition, String dependent_locator, String dependent_identifier)
public static boolean oldCreateIBAValue(Hashtable nv, Hashtable cmd_line, Vector return_objects)
public static boolean createIBAValue(Hashtable nv, Hashtable cmd_line, Vector return_objects)
public static boolean createOrUpdateIBAValue(Hashtable nv, Hashtable cmd_line, Vector return_objects)
nv
- Hashtable containing tokens parsed from the csv load filecmd_line
- Hashtable containing tokens parsed from the cmd line (e.g. java -xxx xxx wt.load.LoadFromFile *.csv)return_objects
- vector to be returned to the calling class (e.g. StandardLoadService.load)
wt.part.LoadPart.beginCreateOrUpdateWTPart
public static void createOrUpdateAttributeValueInContainer(DefaultAttributeContainer container, AbstractValueView newAVV) throws WTException
container
- the AttributeContainer in which newAVV would be either created or updatednewAVV
- newAVV would be either created or updated in container
WTException
wt.part.LoadPart.beginCreateOrUpdateWTPart
public static AbstractValueView cloneAbstractValueView(AbstractValueView fromAVV, AbstractValueView toAVV) throws IBAValueException
fromAVV
- the AVV to copy fromtoAVV
- the AVV to copy to
IBAValueException
private static AbstractValueView internalCreateValue(AbstractAttributeDefinizerView def, String value1, String value2)
public static AbstractValueView newFloatValue(AbstractAttributeDefinizerView def, String s_value, String s_precision)
public static AbstractValueView newUnitValue(AbstractAttributeDefinizerView def, String s_value, String s_precision)
public static AbstractValueView newRatioValue(AbstractAttributeDefinizerView def, String s_value, String s_denominator)
public static AbstractValueView newReferenceValue(AbstractAttributeDefinizerView def, String s_class, String s_identifier)
public static IBAReferenceable getIBAReferenceable(String locator_name, String identifier)
public static AbstractValueView newStringValue(AbstractAttributeDefinizerView def, String svalue)
public static AbstractValueView newTimestampValue(AbstractAttributeDefinizerView def, String s_value)
public static AbstractValueView newBooleanValue(AbstractAttributeDefinizerView def, String s_value)
public static AbstractValueView newURLValue(AbstractAttributeDefinizerView def, String s_value, String description)
public static AbstractValueView newIntegerValue(AbstractAttributeDefinizerView def, String svalue)
private static void dumpCache()
private static Hashtable getContextCache() throws WTException
WTException
private static String decodeComma(String str)
public static void setType(Typed the_typed, String subtypedef) throws WTException
WTException
public static IBAHolder applySoftAttributes(IBAHolder ibaholder) throws WTException
WTException
private static IBAHolder applyTypeAttributeDefaults(IBAHolder ibaholder) throws WTException
WTException
private static void initTypeDefinitions() throws WTException
WTException
private static IBAHolder refreshSoftAttributes(IBAHolder ibaholder) throws WTException
WTException
private static IBAHolder storeSoftAttributes(IBAHolder ibaholder) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |