|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.directives.dataload.LoadCsvData
Alters a table to redeclare a column as not null if it is not already. The directive will not produce an error for columns that are already declared NOT NULL.
<LoadCsvData><[CDATA[csv-data]]> ... </LoadCsvData>
Component | Description | Required | Parameterizable |
---|---|---|---|
CDATA data section | The CSV data in literal un-encoded form. | no | no |
<LoadCsvData> <[CDATA[WfVariable,Analysis_Instructions,java.lang.String,false,false,true,true,,,]]> </LoadCsvData>
Nested Class Summary | |
private class |
LoadCsvData.DataOutputter
Encapsulates the conditional writing of the data records to the data file. |
Field Summary | |
private static Object |
creationLock__
|
private ArrayList |
csvDataRecords_
|
static String |
DATA_RECORD_ELEMENT_NAME
|
private static String |
DEFAULT_DELIMITER_ATTR_VALUE
|
private String |
delimiter_
|
static String |
DELIMITER_ATTR_NAME
|
private static String |
LOAD_FILE_DIR
|
private String |
user_
|
private WTProperties |
wtProperties_
|
Constructor Summary | |
LoadCsvData()
Create an instance with no data. |
Method Summary | |
void |
addCsvDataRecord(String csv_data_record)
Sets the class name of the migrator to run. |
void |
asDomOn(Element element)
|
void |
execute(DirectiveServices directive_services)
Executes the inner class DataOutputter. |
private ArrayList |
getCsvDataRecords()
|
private String |
getDirectiveName()
The name of the directive. |
String |
getLoggedInUser()
|
private File |
getMigDataFile()
|
static void |
initializeDirectiveClass(DirectiveServices directive_services)
Forces migration data file pointer to be based on current source and target versions. |
void |
initializeFromDom(Element element)
Reads from DOMs formatted as described in the class documentation above. |
void |
run()
|
void |
userTransaction(String user)
Stores the login name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DATA_RECORD_ELEMENT_NAME
public static final String DELIMITER_ATTR_NAME
private static final String DEFAULT_DELIMITER_ATTR_VALUE
private static String LOAD_FILE_DIR
private WTProperties wtProperties_
private String delimiter_
private String user_
private ArrayList csvDataRecords_
private static Object creationLock__
Constructor Detail |
public LoadCsvData()
Method Detail |
public void userTransaction(String user)
user
- User supplies the administrator name and password.public String getLoggedInUser()
private ArrayList getCsvDataRecords()
public static void initializeDirectiveClass(DirectiveServices directive_services) throws IOException
IOException
private File getMigDataFile()
public void run()
public void addCsvDataRecord(String csv_data_record)
public void asDomOn(Element element)
asDomOn
in interface UpdateDirective
public void initializeFromDom(Element element)
initializeFromDom
in interface UpdateDirective
private String getDirectiveName()
public void execute(DirectiveServices directive_services) throws DirectiveExecutionException
execute
in interface UpdateDirective
DirectiveExecutionException
- if the class cannot be found, is not actually a Migrator, the instance cannot created due to visibility issues or because the class is abstract or an interface, or the migrator fails or returns a false return value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |