public class CoreData extends java.lang.Object implements DatabaseConnectingCBOGeneratorI, SQLCoreDataStoreI
SCOPE_GLOBAL, SCOPE_LOCAL
Constructor and Description |
---|
CoreData() |
CoreData(electric.xml.Element e) |
CoreData(java.io.File _confdir) |
Modifier and Type | Method and Description |
---|---|
void |
adjustBOTs(boolean nonDestructive)
Puts new BOTs into and removes old BOTs from the BOT list.
|
java.lang.StringBuffer |
appendReportAnkerDefinitionElementsForEntity(java.lang.StringBuffer sb,
EntityI mainent) |
java.lang.StringBuffer |
appendReportAnkerDefinitionElementsForEntity(java.lang.StringBuffer sb,
EntityI mainent,
boolean noManyRelations) |
java.lang.StringBuffer |
appendReportCommonsBackgroundAndTitle(java.lang.StringBuffer sb,
EntityI mainent) |
java.lang.StringBuffer |
appendReportCommonsFooter(java.lang.StringBuffer sb,
EntityI mainent) |
java.lang.StringBuffer |
appendReportCommonsHeader(java.lang.StringBuffer sb,
EntityI mainent) |
java.lang.StringBuffer |
appendReportDataColumnBand(java.lang.StringBuffer sb,
java.util.List atts,
int reportFontSizeNormal,
int delta,
int columnWidth) |
java.lang.StringBuffer |
appendReportDataColumnBand(java.lang.StringBuffer sb,
java.util.List atts,
int reportFontSizeNormal,
int delta,
int columnWidth,
java.lang.String field) |
java.lang.StringBuffer |
appendReportDataColumnForAttribute(java.lang.StringBuffer sb,
CBOAttribute att,
int xPos,
int width,
int height) |
java.lang.StringBuffer |
appendReportDataColumnForAttribute(java.lang.StringBuffer sb,
CBOAttribute att,
int xPos,
int width,
int height,
java.lang.String field) |
java.lang.StringBuffer |
appendReportDefinitionElementsForEntity(java.lang.StringBuffer sb,
EntityI mainent) |
java.lang.StringBuffer |
appendReportDefinitionElementsForEntity(java.lang.StringBuffer sb,
EntityI mainent,
boolean liste) |
java.lang.StringBuffer |
appendReportHeaderColumnBand(java.lang.StringBuffer sb,
java.util.List atts,
int reportFontSizeNormal,
int delta,
int columnWidth) |
java.lang.StringBuffer |
appendReportHeaderColumnForAttribute(java.lang.StringBuffer sb,
CBOAttribute att,
int xPos,
int width,
int height) |
java.lang.StringBuffer |
appendReportLine(java.lang.StringBuffer sb,
int xPos,
int yPos,
int width,
int height) |
java.lang.StringBuffer |
appendReportLineForAttribute(java.lang.StringBuffer sb,
CBOAttribute att,
int yPos,
int height,
int columnWidth) |
java.lang.StringBuffer |
appendReportListeDefinitionElementsForEntity(java.lang.StringBuffer sb,
EntityI mainent) |
java.lang.StringBuffer |
appendReportReportElement(java.lang.StringBuffer sb,
int xPos,
int yPos,
int width,
int height) |
java.lang.StringBuffer |
appendReportStaticText(java.lang.StringBuffer sb,
int xPos,
int yPos,
int width,
int height,
java.lang.String text,
java.lang.String reportFont) |
java.lang.StringBuffer |
appendReportStaticText(java.lang.StringBuffer sb,
int xPos,
int yPos,
int width,
int height,
java.lang.String text,
java.lang.String reportFont,
java.lang.String align) |
java.lang.StringBuffer |
appendReportTextElement(java.lang.StringBuffer sb,
java.lang.String reportFont,
java.lang.String align) |
java.lang.StringBuffer |
appendReportTextField(java.lang.StringBuffer sb,
int xPos,
int yPos,
int width,
int height,
java.lang.String text) |
java.lang.StringBuffer |
appendReportTextField(java.lang.StringBuffer sb,
int xPos,
int yPos,
int width,
int height,
java.lang.String text,
java.lang.String align) |
java.lang.StringBuffer |
appendReportTextField(java.lang.StringBuffer sb,
int xPos,
int yPos,
int width,
int height,
java.lang.String text,
java.lang.String align,
java.lang.String evaluationTime) |
long |
assureFolder(java.lang.String _folderPath,
java.lang.StringBuilder _sbLiveList) |
void |
connect() |
void |
deleteCBAs(long _idCB,
java.lang.String _autoids) |
void |
deleteOrphanedStrukturElemente(java.lang.String _autoids)
Deletes orphaned Struktur instances.
|
void |
disconnect() |
int |
dropUnusedTables(java.lang.String existingBOTIds) |
void |
executeDynSQL(java.lang.String s,
java.lang.String[] args) |
void |
executeSQL(java.lang.String s) |
void |
executeSQL(java.lang.String s,
boolean debug) |
long |
executeSQLCount(java.lang.String clause) |
boolean |
existsBenannt(java.lang.String name,
java.lang.String entityName) |
boolean |
existsBenannt(java.lang.String name,
java.lang.String entityName,
boolean noDeleted) |
static void |
filterBoAttrs(java.util.List attlist) |
CBOGeneratorResult |
generate(SchemaI _schema) |
CBOGeneratorResult |
generate(SchemaI _schema,
SchemaI newSchema) |
void |
generateDruckziel(long botid,
java.lang.String tid,
java.lang.String name,
java.lang.String desc,
java.lang.String script)
Generates a specific Druckziel object using the supplied data.
|
void |
generateDruckziele()
(Re)Generates the default Druckziele objects.
|
long |
getAdminCoreId() |
java.lang.Long |
getBenanntId(java.lang.String name,
java.lang.String entityName) |
java.lang.Long |
getBenanntId(java.lang.String name,
java.lang.String entityName,
boolean noDeleted) |
java.lang.Long |
getBenanntId(java.lang.String name,
java.lang.String tid,
java.lang.String entityName) |
java.lang.Long |
getBenanntId(java.lang.String name,
java.lang.String tid,
java.lang.String entityName,
boolean noDeleted) |
long |
getBotId(java.lang.String entityName) |
long |
getBotId(java.lang.String entityName,
boolean noThrowIfNotFound) |
long |
getBotId(java.lang.String entityName,
boolean noThrowIfNotFound,
boolean ignoreCase) |
java.util.Map |
getBotIds() |
java.lang.Long |
getCBAId(java.lang.String _name,
long _idCB) |
java.lang.String |
getDriver() |
java.util.List |
getFilteredAndRearrangedAttListForReport(EntityI mainent) |
java.util.List |
getFilteredAndRearrangedAttListForReport(EntityI mainent,
boolean noManyRelations) |
long |
getHighestCoreId() |
java.lang.String |
getName() |
long |
getNextId() |
java.lang.String |
getPass() |
int |
getReportFontSizeBig(EntityI e) |
int |
getReportFontSizeNormal(EntityI e) |
java.lang.String |
getReportOrientation(EntityI e) |
java.lang.Long |
getStrukturId(java.lang.String name,
java.lang.String entityName) |
java.lang.Long |
getStrukturId(java.lang.String name,
java.lang.String entityName,
long elter) |
java.lang.Long |
getStrukturId(java.lang.String name,
java.lang.String entityName,
long elter,
boolean automatik) |
java.lang.Long |
getStrukturId(java.lang.String name,
java.lang.String entityName,
long elter,
boolean automatik,
boolean deletesuperfluous) |
java.lang.String |
getUrl() |
java.lang.String |
getUser() |
void |
init() |
void |
init(electric.xml.Element e) |
void |
initDatabaseConnectionParameters(java.lang.String _driver,
java.lang.String _url,
java.lang.String _user,
java.lang.String _pass) |
void |
insertEntityIntoBOT(CBOEntity ent) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String _str) |
java.lang.String |
reformatXML(java.lang.StringBuffer sb) |
void |
setDriver(java.lang.String $65) |
void |
setPass(java.lang.String $68) |
void |
setUrl(java.lang.String $66) |
void |
setUser(java.lang.String $67) |
long |
updateReportForEntity(EntityI ent,
java.lang.String prefix,
long elter) |
long |
updateReportForEntity(EntityI ent,
java.lang.String prefix,
long elter,
int prio) |
long |
updateReportForEntity(EntityI ent,
java.lang.String prefix,
long elter,
int prio,
boolean liste) |
public CoreData(java.io.File _confdir)
public CoreData()
public CoreData(electric.xml.Element e)
public void init()
public void init(electric.xml.Element e)
public void initDatabaseConnectionParameters(java.lang.String _driver, java.lang.String _url, java.lang.String _user, java.lang.String _pass)
initDatabaseConnectionParameters
in interface DatabaseConnectingCBOGeneratorI
public java.lang.String getName()
getName
in interface CBOGeneratorI
public void connect()
public void disconnect()
public CBOGeneratorResult generate(SchemaI _schema)
generate
in interface CBOGeneratorI
public CBOGeneratorResult generate(SchemaI _schema, SchemaI newSchema)
generate
in interface CBOGeneratorI
public void adjustBOTs(boolean nonDestructive)
nonDestructive
- a boolean, if true checks for unused objects in BOT table are omitted and no tables are droppedpublic void generateDruckziele()
public void generateDruckziel(long botid, java.lang.String tid, java.lang.String name, java.lang.String desc, java.lang.String script)
name
- Name for the Druckzieldesc
- Short descriptionscript
- Script that is called when this Druckziel is usedbotid
- the id of the BOT for "Druckziel"public void deleteOrphanedStrukturElemente(java.lang.String _autoids)
public void deleteCBAs(long _idCB, java.lang.String _autoids)
deleteCBAs
in interface SQLCoreDataStoreI
public long assureFolder(java.lang.String _folderPath, java.lang.StringBuilder _sbLiveList) throws CoredataGenerationException, java.sql.SQLException
assureFolder
in interface SQLCoreDataStoreI
CoredataGenerationException
java.sql.SQLException
public long updateReportForEntity(EntityI ent, java.lang.String prefix, long elter)
public long updateReportForEntity(EntityI ent, java.lang.String prefix, long elter, int prio)
public long updateReportForEntity(EntityI ent, java.lang.String prefix, long elter, int prio, boolean liste)
public java.lang.StringBuffer appendReportAnkerDefinitionElementsForEntity(java.lang.StringBuffer sb, EntityI mainent)
public java.lang.StringBuffer appendReportAnkerDefinitionElementsForEntity(java.lang.StringBuffer sb, EntityI mainent, boolean noManyRelations)
public java.lang.StringBuffer appendReportDefinitionElementsForEntity(java.lang.StringBuffer sb, EntityI mainent, boolean liste)
public java.lang.StringBuffer appendReportCommonsHeader(java.lang.StringBuffer sb, EntityI mainent)
public java.lang.StringBuffer appendReportCommonsBackgroundAndTitle(java.lang.StringBuffer sb, EntityI mainent)
public java.lang.StringBuffer appendReportCommonsFooter(java.lang.StringBuffer sb, EntityI mainent)
public java.lang.StringBuffer appendReportListeDefinitionElementsForEntity(java.lang.StringBuffer sb, EntityI mainent)
public java.lang.StringBuffer appendReportHeaderColumnBand(java.lang.StringBuffer sb, java.util.List atts, int reportFontSizeNormal, int delta, int columnWidth)
public java.lang.StringBuffer appendReportDataColumnBand(java.lang.StringBuffer sb, java.util.List atts, int reportFontSizeNormal, int delta, int columnWidth)
public java.lang.StringBuffer appendReportDataColumnBand(java.lang.StringBuffer sb, java.util.List atts, int reportFontSizeNormal, int delta, int columnWidth, java.lang.String field)
public java.lang.StringBuffer appendReportLine(java.lang.StringBuffer sb, int xPos, int yPos, int width, int height)
public java.lang.StringBuffer appendReportHeaderColumnForAttribute(java.lang.StringBuffer sb, CBOAttribute att, int xPos, int width, int height)
public java.lang.StringBuffer appendReportDataColumnForAttribute(java.lang.StringBuffer sb, CBOAttribute att, int xPos, int width, int height)
public java.lang.StringBuffer appendReportDataColumnForAttribute(java.lang.StringBuffer sb, CBOAttribute att, int xPos, int width, int height, java.lang.String field)
public java.lang.StringBuffer appendReportDefinitionElementsForEntity(java.lang.StringBuffer sb, EntityI mainent)
public java.lang.StringBuffer appendReportLineForAttribute(java.lang.StringBuffer sb, CBOAttribute att, int yPos, int height, int columnWidth)
public java.lang.StringBuffer appendReportStaticText(java.lang.StringBuffer sb, int xPos, int yPos, int width, int height, java.lang.String text, java.lang.String reportFont)
public java.lang.StringBuffer appendReportStaticText(java.lang.StringBuffer sb, int xPos, int yPos, int width, int height, java.lang.String text, java.lang.String reportFont, java.lang.String align)
public java.lang.StringBuffer appendReportTextField(java.lang.StringBuffer sb, int xPos, int yPos, int width, int height, java.lang.String text)
public java.lang.StringBuffer appendReportTextField(java.lang.StringBuffer sb, int xPos, int yPos, int width, int height, java.lang.String text, java.lang.String align)
public java.lang.StringBuffer appendReportTextField(java.lang.StringBuffer sb, int xPos, int yPos, int width, int height, java.lang.String text, java.lang.String align, java.lang.String evaluationTime)
public java.lang.StringBuffer appendReportReportElement(java.lang.StringBuffer sb, int xPos, int yPos, int width, int height)
public java.lang.StringBuffer appendReportTextElement(java.lang.StringBuffer sb, java.lang.String reportFont, java.lang.String align)
public int getReportFontSizeNormal(EntityI e)
public int getReportFontSizeBig(EntityI e)
public java.lang.String getReportOrientation(EntityI e)
public java.util.List getFilteredAndRearrangedAttListForReport(EntityI mainent)
public java.util.List getFilteredAndRearrangedAttListForReport(EntityI mainent, boolean noManyRelations)
public static final void filterBoAttrs(java.util.List attlist)
public java.lang.String reformatXML(java.lang.StringBuffer sb)
public int dropUnusedTables(java.lang.String existingBOTIds)
public java.util.Map getBotIds()
public long getAdminCoreId()
public long getHighestCoreId()
public void insertEntityIntoBOT(CBOEntity ent)
public long getBotId(java.lang.String entityName) throws java.lang.IllegalArgumentException
getBotId
in interface SQLCoreDataStoreI
java.lang.IllegalArgumentException
public long getBotId(java.lang.String entityName, boolean noThrowIfNotFound) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public long getBotId(java.lang.String entityName, boolean noThrowIfNotFound, boolean ignoreCase) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public boolean existsBenannt(java.lang.String name, java.lang.String entityName)
public boolean existsBenannt(java.lang.String name, java.lang.String entityName, boolean noDeleted)
public java.lang.Long getBenanntId(java.lang.String name, java.lang.String entityName)
getBenanntId
in interface SQLCoreDataStoreI
public java.lang.Long getBenanntId(java.lang.String name, java.lang.String entityName, boolean noDeleted)
public java.lang.Long getBenanntId(java.lang.String name, java.lang.String tid, java.lang.String entityName)
public java.lang.Long getBenanntId(java.lang.String name, java.lang.String tid, java.lang.String entityName, boolean noDeleted)
public java.lang.Long getStrukturId(java.lang.String name, java.lang.String entityName) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.Long getStrukturId(java.lang.String name, java.lang.String entityName, long elter) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.Long getStrukturId(java.lang.String name, java.lang.String entityName, long elter, boolean automatik) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.Long getStrukturId(java.lang.String name, java.lang.String entityName, long elter, boolean automatik, boolean deletesuperfluous) throws java.lang.IllegalArgumentException
getStrukturId
in interface SQLCoreDataStoreI
java.lang.IllegalArgumentException
public java.lang.Long getCBAId(java.lang.String _name, long _idCB)
getCBAId
in interface SQLCoreDataStoreI
public void executeSQL(java.lang.String s) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void executeSQL(java.lang.String s, boolean debug) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void executeDynSQL(java.lang.String s, java.lang.String[] args) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public long executeSQLCount(java.lang.String clause)
public long getNextId()
getNextId
in interface SQLCoreDataStoreI
public java.sql.PreparedStatement prepareStatement(java.lang.String _str) throws java.sql.SQLException
prepareStatement
in interface SQLCoreDataStoreI
java.sql.SQLException
public java.lang.String getDriver()
public void setDriver(java.lang.String $65)
public java.lang.String getUrl()
public void setUrl(java.lang.String $66)
public java.lang.String getUser()
public void setUser(java.lang.String $67)
public java.lang.String getPass()
public void setPass(java.lang.String $68)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.