|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.OBBase com.oberon.ooql.sdk.Dump
public class Dump
Exports/Imports/Compares OBEROn data to/from dump files
Field Summary | |
---|---|
static java.lang.String[] |
adminTypes
List of administrative types |
static java.lang.String[] |
adminUserTypes
List of User-dependent administrative types |
Constructor Summary | |
---|---|
Dump()
|
Method Summary | |
---|---|
void |
addAdminTarget(java.lang.String adminType)
Set the admin export / import / compare type |
void |
addClassPattern(java.lang.String classPattern)
Add a Class pattern; used to filter ObjectObj instances |
void |
addNamePattern(java.lang.String namePattern)
Add a name pattern; used to filter ObjectObj instances |
void |
addObjectSpacePattern(java.lang.String osPattern)
Add an ObjectSpace pattern; used to filter ObjectObj instances |
void |
addPattern(java.lang.String adminNamePattern)
Add an admin export / import / compare name pattern |
void |
addRevisionPattern(java.lang.String revisionPattern)
Add a revision pattern; used to filter ObjectObj instances |
void |
addUserPattern(java.lang.String userPattern)
Add a User pattern; used to filter User-dependent administrative objects |
static java.lang.String |
compareAdminObject(OBBase refObj,
OBBase dbObj,
boolean feature,
boolean image,
boolean force,
Framework framework)
Compare a reference administrative object with its DB version |
void |
docompare(java.io.DataInputStream inStream,
java.io.DataOutputStream logStream,
Framework framework)
Compare data (administrative or application objects [ ObjectObj ]) from a file; produce a log report |
void |
doexpand(java.io.DataOutputStream outStream,
Framework framework)
Expand administrative objects: report all administrative links |
void |
doexport(java.lang.String outFile,
java.io.DataOutputStream outStream,
Framework framework)
Export data (administrative or application objects [ ObjectObj ]) to a file |
void |
doimport(java.lang.String inFile,
java.io.DataInputStream inStream,
Framework framework)
Import data (administrative or application objects [ ObjectObj ]) from a file |
java.util.Vector<java.lang.String> |
getAdminTarget()
Get the admin type filter |
static java.lang.String[] |
getAdminTypes()
Returns the list of administrative dump types |
static java.lang.String[] |
getAdminUserTypes()
Returns the list of user dump types |
java.util.Vector<java.lang.String> |
getClassPattern()
Return the list of Class patterns |
int |
getCommit()
Get the transaction commit number |
java.lang.String |
getCompareCommand(java.lang.String fileName,
java.lang.String logFileName,
boolean append)
Return the OOQL command to compare administrative objects on the basic of set options |
boolean |
getDumpFeatures()
Get the include Feature flag |
boolean |
getDumpFiles()
Get the include files flag |
boolean |
getDumpHistory()
Get the include history flag |
boolean |
getDumpImages()
Get the include images flag |
boolean |
getDumpLinks()
Get the include Link flag |
boolean |
getDumpStages()
Get the include Stage flag |
java.lang.String |
getExpandCommand(java.lang.String fileName,
boolean append)
Return the OOQL command to expand administrative objects on the basic of set options |
java.lang.String |
getExportCommand(java.lang.String fileName,
boolean append)
Return the OOQL command to export objects on the basic of set options. |
boolean |
getFullDump()
Get the full dump flag |
java.lang.String |
getImportCommand(java.lang.String fileName)
Return the OOQL command to import objects on the basic of set options. |
java.lang.String |
getName()
[Inherited but not used] |
java.util.Vector<java.lang.String> |
getNamePattern()
Return the list of ObjectObj name patterns |
java.lang.String |
getObjectGroup()
Get the settled ObjectGroup name |
java.util.Vector<java.lang.String> |
getObjectSpacePattern()
Return the list of ObjectSpace patterns |
java.util.Vector<java.lang.String> |
getPatterns()
Return the list of admin name patterns |
ProgressCounter |
getProgressCounter()
Return the ProgressCounter |
java.lang.String |
getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
[inherited but NOT USED] |
java.util.Vector<java.lang.String> |
getRevisionPattern()
Return the list of revision patterns |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
[inherited but NOT USED] |
java.util.Vector<java.lang.String> |
getUserPatterns()
Return the list of User patterns |
boolean |
isForcedInput()
Get the force flag for import operations |
boolean |
isJSON()
Get the json flag |
boolean |
isMatrixXML()
Get the eMatrix xml flag |
boolean |
isOverwrite()
Get the overwrite flag |
boolean |
isResume()
Get the resume flag |
boolean |
isShowObjects()
If true, list all manipulated objects in the result log |
boolean |
isXML()
Get the xml flag |
void |
setClassPatterns(java.util.Vector<java.lang.String> patterns)
Set the list of Class patterns |
void |
setCommit(int commit)
Set the transaction commit number |
void |
setDumpFeatures(boolean getFeatures)
Include / exclude the admin object Features in the import/export/compare process |
void |
setDumpFiles(boolean getFiles)
Include / exclude the attached files in the import/export/compare process |
void |
setDumpHistory(boolean getHistory)
Include / exclude the ObjectObj and Link history in the import/export/compare process |
void |
setDumpImages(boolean getImages)
Include / exclude the images/icons in the import/export/compare process |
void |
setDumpLinks(boolean getLinks)
Include / exclude the ObjectObj 's Link s in the import/export/compare process |
void |
setDumpStages(boolean getStages)
Include / exclude the ObjectObj 's Stage status in the import/export/compare process |
void |
setForcedImport(boolean force)
Set the force flag for import operations |
void |
setFullDump(boolean fullDump)
Include admin object detailed information in the import/export/compare process |
void |
setJSON(boolean json)
Set the import / export file format as OBEROn JSON format |
void |
setMatrixXML(boolean emxxml)
Set the import file format as eMatrix xml |
void |
setNamePatterns(java.util.Vector<java.lang.String> patterns)
Set the list of ObjectObj name patterns |
void |
setObjectGroup(java.lang.String objectGroupName)
Extract / import ObjectObj s from/into a user ObjectGroup |
void |
setObjectSpacePatterns(java.util.Vector<java.lang.String> patterns)
Set the list of ObjectSpace patterns |
void |
setOverwrite(boolean overwrite)
Set the overwrite flag |
void |
setPatterns(java.util.Vector<java.lang.String> patterns)
Set the list of admin name patterns |
void |
setProgressCounter(ProgressCounter counter)
Set the ProgressCounter |
void |
setResume(boolean resume)
Set the resume flag |
void |
setRevisionPatterns(java.util.Vector<java.lang.String> patterns)
Set the list of ObjectObj revision patterns |
void |
setShowObjects(boolean show)
If true, list all manipulated objects in the result log |
void |
setUserPatterns(java.util.Vector<java.lang.String> patterns)
Set the list of User patterns; used to filter User-dependent administrative objects |
void |
setXML(boolean xml)
Set the import / export file format as OBEROn xml |
java.lang.String |
toString()
Return the Dump object properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
[Inherited but not used] |
org.jdom.Element |
toXML(Framework framework)
[Inherited but not used] |
Methods inherited from class com.oberon.ooql.sdk.OBBase |
---|
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, isLinked, removeChange, resetChanges, setId, setLinked |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String[] adminTypes
public static java.lang.String[] adminUserTypes
Constructor Detail |
---|
public Dump()
Method Detail |
---|
public void doexport(java.lang.String outFile, java.io.DataOutputStream outStream, Framework framework) throws java.io.IOException, OberonException
ObjectObj
]) to a file
outFile
- the output file nameoutStream
- the output file streamframework
- the current framework
OberonException
- usually due to DB SQL exceptions
java.io.IOException
public void doimport(java.lang.String inFile, java.io.DataInputStream inStream, Framework framework) throws java.io.IOException, OberonException
ObjectObj
]) from a file
inStream
- the input file streamframework
- the current framework
OberonException
- usually due to DB SQL exceptions
java.io.IOException
public void docompare(java.io.DataInputStream inStream, java.io.DataOutputStream logStream, Framework framework) throws java.io.IOException, OberonException
ObjectObj
]) from a file; produce a log report
inStream
- the input file streamlogStream
- the log file streamframework
- the current framework
OberonException
- usually due to DB SQL exceptions
java.io.IOException
public void doexpand(java.io.DataOutputStream outStream, Framework framework) throws java.io.IOException, OberonException
outStream
- the stream for the results (if null the result is stored into the framework)framework
- the current framework
OberonException
- usually due to DB SQL exceptions
java.io.IOException
public void addAdminTarget(java.lang.String adminType)
adminType
- the OOQL admin type (example: field, class,...)
use "all" to ignore this filterpublic java.util.Vector<java.lang.String> getAdminTarget()
public void addPattern(java.lang.String adminNamePattern)
adminNamePattern
- the admin name pattern (use * / ? as wildcards )public void setPatterns(java.util.Vector<java.lang.String> patterns)
public java.util.Vector<java.lang.String> getPatterns()
addPattern(String)
,
setPatterns(Vector)
public void addUserPattern(java.lang.String userPattern)
userPattern
- the User
name pattern (use * / ? as wildcards )public void setUserPatterns(java.util.Vector<java.lang.String> patterns)
public java.util.Vector<java.lang.String> getUserPatterns()
User
patternsaddUserPattern(String)
,
setUserPatterns(Vector)
public void addClassPattern(java.lang.String classPattern)
ObjectObj
instances
classPattern
- the Class
name pattern (use * / ? as wildcards )public void setClassPatterns(java.util.Vector<java.lang.String> patterns)
public java.util.Vector<java.lang.String> getClassPattern()
Class
name patternsaddClassPattern(String)
,
setClassPatterns(Vector)
public void addNamePattern(java.lang.String namePattern)
ObjectObj
instances
namePattern
- the ObjectObj
name pattern (use * / ? as wildcards )public void setNamePatterns(java.util.Vector<java.lang.String> patterns)
ObjectObj
name patterns
public java.util.Vector<java.lang.String> getNamePattern()
ObjectObj
name patternsaddNamePattern(String)
,
setNamePatterns(Vector)
public void addRevisionPattern(java.lang.String revisionPattern)
ObjectObj
instances
revisionPattern
- the ObjectObj
revision pattern (use * / ? as wildcards )public void setRevisionPatterns(java.util.Vector<java.lang.String> patterns)
ObjectObj
revision patterns
public java.util.Vector<java.lang.String> getRevisionPattern()
ObjectObj
revision patternsaddRevisionPattern(String)
,
setRevisionPatterns(Vector)
public void addObjectSpacePattern(java.lang.String osPattern)
ObjectObj
instances
osPattern
- the ObjectSpace
name pattern (use * / ? as wildcards )public void setObjectSpacePatterns(java.util.Vector<java.lang.String> patterns)
public java.util.Vector<java.lang.String> getObjectSpacePattern()
ObjectSpace
name patternsaddObjectSpacePattern(String)
,
setObjectSpacePatterns(Vector)
public void setDumpImages(boolean getImages)
getImages
- true to include imagespublic boolean getDumpImages()
public void setFullDump(boolean fullDump)
fullDump
- true to include detailed infopublic boolean getFullDump()
public void setDumpFiles(boolean getFiles)
getFiles
- true to include filespublic boolean getDumpFiles()
public void setDumpHistory(boolean getHistory)
ObjectObj
and Link
history in the import/export/compare process
getHistory
- true to include historypublic boolean getDumpHistory()
public void setDumpLinks(boolean getLinks)
ObjectObj
's Link
s in the import/export/compare process
getLinks
- true to include ObjectObj's Linkspublic boolean getDumpLinks()
Link
flag
public void setDumpStages(boolean getStages)
ObjectObj
's Stage status in the import/export/compare process
getStages
- true to include ObjectObj's Stage
statuspublic boolean getDumpStages()
Stage
flag
public void setDumpFeatures(boolean getFeatures)
getFeatures
- true to include Feature
spublic boolean getDumpFeatures()
Feature
flag
public void setObjectGroup(java.lang.String objectGroupName)
ObjectObj
s from/into a user ObjectGroup
objectGroupName
- the name of the ObjectGroup
(empty to reset this option)public java.lang.String getObjectGroup()
ObjectGroup
name
setObjectGroup(String)
public void setXML(boolean xml)
xml
- true to set the xml formatpublic boolean isXML()
setXML(boolean)
public void setJSON(boolean json)
json
- true to set the JSON formatpublic boolean isJSON()
setJSON(boolean)
public void setMatrixXML(boolean emxxml)
emxxml
- true to set the xml formatpublic boolean isMatrixXML()
setMatrixXML(boolean)
public void setOverwrite(boolean overwrite)
overwrite
- true to update the existing objectspublic boolean isOverwrite()
setOverwrite(boolean)
public void setForcedImport(boolean force)
force
- true to ignore optional features if not definedpublic boolean isForcedInput()
setForcedImport(boolean)
public void setResume(boolean resume)
resume
- true to continue the process when an error occurspublic boolean isResume()
setResume(boolean)
public void setCommit(int commit)
commit
- number of imported objects for each transaction commit (default = 1)public int getCommit()
setCommit(int)
public static java.lang.String[] getAdminTypes()
public static java.lang.String[] getAdminUserTypes()
public void setShowObjects(boolean show)
show
- true to set enable the object listpublic boolean isShowObjects()
setShowObjects(boolean)
public java.lang.String getProperty(java.lang.String propertyName, java.util.Vector<java.lang.Object> filterArgs, java.lang.String token, Framework framework)
getProperty
in class OBBase
public java.util.Vector<?> getTargetNames(java.lang.String composedName, java.util.Vector<java.lang.Object> filterArgs, Framework framework)
getTargetNames
in class OBBase
public java.lang.String toString()
toString
in class java.lang.Object
public org.jdom.Element toXML(Framework framework)
public org.jdom.Element toXML(boolean getImage, boolean fullDump, Framework framework)
public java.lang.String getExportCommand(java.lang.String fileName, boolean append)
public java.lang.String getImportCommand(java.lang.String fileName)
public java.lang.String getCompareCommand(java.lang.String fileName, java.lang.String logFileName, boolean append)
public java.lang.String getExpandCommand(java.lang.String fileName, boolean append)
public static java.lang.String compareAdminObject(OBBase refObj, OBBase dbObj, boolean feature, boolean image, boolean force, Framework framework) throws java.sql.SQLException, OberonException
refObj
- the object to comparedbObj
- the database objectfeature
- perform feature comparisonimage
- check if images are equalsforce
- add the "force" options to the OOQL command
java.sql.SQLException
OberonException
public java.lang.String getName()
getName
in class OBBase
public void setProgressCounter(ProgressCounter counter)
public ProgressCounter getProgressCounter()
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |