|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.iba.definition.DefinitionLoaderWithCache
Bulk load data (IBA) into database for initial setup or migrating from legacy data Called by command line: java wt.units.DefinitionLoaderWithCache
Field Summary | |
private static String |
CURRENT_CH_KEY
|
static String |
DEFINITION_CACHE
|
static Installer |
installService
|
static String |
ORGANIZER_CACHE
|
private static String |
ROOT_NAME
|
private static String |
SERVICE_NAME
|
private static UnitDBService |
theUnitDBService
|
private static boolean |
VERBOSE
|
Constructor Summary | |
DefinitionLoaderWithCache()
|
Method Summary | |
static boolean |
addToAHCache(AbstractAttributeDefinizerView aadv,
String path)
|
private static boolean |
commitUnittedAttributeDefinition(UnitDefView udf)
|
static boolean |
createAttrDefinizer(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Create Attribute Definition(s) or Organizer(s) This method can be called by java wt.load.LoadFromFile -d c:\windchill\loadfiles\attrdefinizer.csv This method can also be called from the DefinitionLoaderWithCache main program. |
private static boolean |
createAttributeDefinition(String displayName,
Object addv)
|
private static boolean |
createAttributeDefinitionUnderDefinition(String name,
String hierarchyDisplayName,
String displayName,
String description,
String logicalIdentifier,
String dataType,
String referencedClassName,
String parentClassName,
AbstractAttributeDefinizerView parent_aadv)
|
private static boolean |
createAttributeDefinitionUnderOrganizer(String name,
String hierarchyDisplayName,
String displayName,
String description,
String logicalIdentifier,
String dataType,
String referencedClassName,
AbstractAttributeDefinizerView parent_aadv)
|
private static boolean |
createAttributeOrganizer(IBADefinitionService ibaServiceHelper,
AttributeOrgDefaultView aodv)
|
private static boolean |
createUnittedAttributeDefinition(String nameValuePairs,
String name,
String hierarchyDisplayName,
String displayName,
String description,
String logicalIdentifier,
QuantityOfMeasureDefaultView qomdv,
AbstractAttributeDefinizerView parent_aadv)
|
static AbstractAttributeDefinizerNodeView |
findAttributeChild(AbstractAttributeDefinizerNodeView parent,
String childName)
|
static AttributeOrgNodeView |
findOrgRoot(String rootName)
|
static AttributeDefinition |
getAttributeDefinition(AttributeDefDefaultView defView)
|
static AbstractAttributeDefinizerView |
getAttributeDefinition(String parentID)
Pass parent path from root to the new node's parent, return the parent attribute deninition or organizer back |
static AttributeDefNodeView |
getAttributeDefNodeView(AttributeDefinition ad)
|
static AttributeDefNodeView |
getAttributeDefNodeViewByPath(String path,
String dataType)
|
static AttributeOrganizer |
getAttributeOrganizer(AttributeOrgDefaultView orgView)
|
static AbstractAttributeDefinizerView |
getAttributeOrganizer(String parentID)
Pass parent path include organizer from root to the new node's parent, return the parent attribute deninition or organizer back |
static AttributeOrgNodeView |
getAttributeOrgNodeView(AttributeOrganizer ao)
|
static AbstractAttributeDefinizerView |
getFromAHCache(String parentPath,
boolean organizer)
get AbstractAttributeDefinizerView from Cache to reduce DB access. |
static String |
getObjectLocatorKey(String locator)
|
static void |
main(String[] args)
Command line method for loading demonstration data into the Windchill system. |
static boolean |
removeAHCache(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
|
private static String |
removeInvalidCharactersFromPath(String s)
|
static boolean |
setupAHCache(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static Installer installService
private static String CURRENT_CH_KEY
private static UnitDBService theUnitDBService
private static final boolean VERBOSE
private static final String SERVICE_NAME
private static final String ROOT_NAME
public static final String DEFINITION_CACHE
public static final String ORGANIZER_CACHE
Constructor Detail |
public DefinitionLoaderWithCache()
Method Detail |
public static void main(String[] args) throws Exception
args
- Not used anymore, ignored.
Exception
public static boolean setupAHCache(Hashtable nv, Hashtable cmd_line, Vector return_objects)
public static boolean removeAHCache(Hashtable nv, Hashtable cmd_line, Vector return_objects)
public static boolean createAttrDefinizer(Hashtable nv, Hashtable cmd_line, Vector return_objects)
cmd_line
-
public static AbstractAttributeDefinizerNodeView findAttributeChild(AbstractAttributeDefinizerNodeView parent, String childName)
public static AttributeOrgNodeView findOrgRoot(String rootName)
private static boolean createAttributeDefinitionUnderDefinition(String name, String hierarchyDisplayName, String displayName, String description, String logicalIdentifier, String dataType, String referencedClassName, String parentClassName, AbstractAttributeDefinizerView parent_aadv) throws WTPropertyVetoException
WTPropertyVetoException
private static boolean createUnittedAttributeDefinition(String nameValuePairs, String name, String hierarchyDisplayName, String displayName, String description, String logicalIdentifier, QuantityOfMeasureDefaultView qomdv, AbstractAttributeDefinizerView parent_aadv) throws WTPropertyVetoException
WTPropertyVetoException
private static boolean commitUnittedAttributeDefinition(UnitDefView udf)
private static boolean createAttributeDefinitionUnderOrganizer(String name, String hierarchyDisplayName, String displayName, String description, String logicalIdentifier, String dataType, String referencedClassName, AbstractAttributeDefinizerView parent_aadv) throws WTPropertyVetoException
WTPropertyVetoException
private static boolean createAttributeDefinition(String displayName, Object addv)
private static boolean createAttributeOrganizer(IBADefinitionService ibaServiceHelper, AttributeOrgDefaultView aodv)
public static AbstractAttributeDefinizerView getAttributeDefinition(String parentID)
public static AbstractAttributeDefinizerView getAttributeOrganizer(String parentID)
public static AttributeDefNodeView getAttributeDefNodeViewByPath(String path, String dataType)
public static AbstractAttributeDefinizerView getFromAHCache(String parentPath, boolean organizer)
public static boolean addToAHCache(AbstractAttributeDefinizerView aadv, String path)
public static AttributeOrgNodeView getAttributeOrgNodeView(AttributeOrganizer ao)
public static AttributeDefNodeView getAttributeDefNodeView(AttributeDefinition ad)
public static AttributeOrganizer getAttributeOrganizer(AttributeOrgDefaultView orgView)
public static AttributeDefinition getAttributeDefinition(AttributeDefDefaultView defView)
public static String getObjectLocatorKey(String locator)
private static String removeInvalidCharactersFromPath(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |