public class SchemaWrapper extends java.lang.Object implements SchemaI
ATT_NAME_DEFAULT_PACKAGE, INITIALDATA_LINE_ENCLOSING_CHAR, INITIALDATA_LINE_SEPARATOR_CHAR, INITIALDATA_SCHEMA_ADDITIONS_FILENAME, MD_DISABLE, MD_NON_DESTRUCTIVE, MD_RECREATE_INDEXES, NAME_MINLENGTH, RELATION_TYPE_1_N, RELATION_TYPE_N_1, RELATION_TYPE_N_M
Modifier and Type | Method and Description |
---|---|
void |
addRelationObject(java.lang.Object bo,
java.lang.String attPath,
java.lang.Object toAdd) |
AggregateFunctionI |
aggregate(AggregateFunctionI a,
BOI bo,
java.lang.String pathlist) |
AggregateFunctionI |
aggregate(java.lang.String aggregateName,
BOI bo,
java.lang.String pathlist) |
AggregateFunctionI |
aggregate(java.lang.String aggregateName,
BOI bo,
java.lang.String pathlist,
java.lang.String parameters) |
ScriptFunctionI |
createFunction(java.lang.String language,
java.lang.String src) |
ScriptFunctionI |
createFunction(java.lang.String language,
java.lang.String src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes) |
ScriptFunctionI |
createFunction(java.lang.String language,
java.lang.String src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType) |
ScriptFunctionI |
createFunction(java.lang.String language,
java.lang.String src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String scriptName) |
ScriptFunctionI |
createFunction(java.lang.String language,
java.lang.String src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String scriptName,
java.lang.String functionName) |
ScriptFunctionI |
createFunction(java.lang.String language,
java.lang.String src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String scriptName,
java.lang.String functionName,
int lineOffset) |
ScriptFunctionI |
createFunctionFromXML(java.lang.String xml,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes) |
ScriptFunctionI |
createFunctionFromXML(java.lang.String xml,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType) |
ScriptFunctionI |
createFunctionFromXML(java.lang.String xml,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String scriptName,
java.lang.String functionName) |
ScriptFunctionI |
createFunctionFromXML(java.lang.String xml,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String scriptName,
java.lang.String functionName,
int lineOffset) |
java.lang.String |
describe(java.lang.Object o)
"format" an object.
|
java.lang.String |
describe(java.lang.Object o,
java.lang.String formatdef)
"format" an object.
|
java.lang.String |
describe(java.lang.Object o,
java.lang.String formatdef,
java.util.Map variables)
"format" an object.
|
java.lang.String |
describe(java.lang.Object o,
java.lang.String formatdef,
java.util.Map variables,
SchemaI onBehalfOfSchema)
"format" an object.
|
java.lang.String |
flattenToString()
Generates a normalized string representation of the schema.
|
AnnotatedValue |
getAnnotatedValue(java.lang.Object bo,
java.lang.String attPath) |
AnnotatedValue |
getAnnotatedValueAsString(java.lang.Object bo,
java.lang.String attPath) |
AttributeI |
getAttribute(java.lang.Object bo,
java.lang.String attPath)
Getting Attributes via name or given object.
|
AttributeI |
getAttribute(java.lang.Object bo,
java.lang.String attPath,
boolean noThrow)
Getting Attributes via name or given object.
|
BOI |
getBOForLastPathElement(BOI rootBo,
java.lang.String path) |
BOI |
getClosestAvailableAggregateAnchor(BOI bo,
java.lang.String pathlist) |
CryptoHandlerI |
getCryptoHandler()
Retrieves the CryptoHandlerI of this schema.
|
java.lang.String |
getCurrentFolder() |
java.util.List<ScriptImport> |
getDefaultImports() |
java.lang.String |
getDefaultPackage() |
java.util.Map |
getDiscriminators()
Needed between the Entities of a Schema.
|
java.util.List<EntityI> |
getEntitiesForInterface(java.lang.Class clazz)
Returns a list of all entities that implement the given interface.
|
EntityI |
getEntity(java.lang.String name) |
EntityI |
getEntityForClass(java.lang.Class<? extends BOI> clazz) |
EntityI |
getEntityForClassName(java.lang.String className) |
EntityI |
getEntityForObject(java.lang.Object o) |
java.util.List<EntityI> |
getEntityList() |
java.lang.String |
getFingerprint()
Base64 coded SHA-digest of
SchemaI.getSerialVersionUIDs() result. |
FormatterI |
getFormatter()
"format" an object.
|
FormatterI |
getFormatter(java.lang.Object rootObject)
"format" an object.
|
FormatterI |
getFormatter(java.lang.Object rootObject,
java.util.Map objectMap)
"format" an object.
|
FormatterI |
getFormatter(java.lang.Object rootObject,
java.util.Map objectMap,
SchemaI onBehalfOfSchema)
"format" an object.
|
AttributeI[] |
getFrappingAttributes(BOI bo) |
java.util.List<GDPRConfigurationElement> |
getGDPRConfigElements() |
SchemaInterfaceI |
getInterface(java.lang.String name)
Returns the
SchemaInterfaceI for the passed name. |
java.util.Collection<? extends SchemaInterfaceI> |
getInterfaces()
Returns a collection of all interfaces defined in the schema.
|
EntityI |
getLowestCommonDenominateEntity(BOI[] bos) |
AttributeI[] |
getNonPersistentAttributes(BOI bo) |
java.util.List<java.lang.String> |
getPackageList() |
PermissionHandlerI |
getPermissionHandler()
Retrieves the PermissionHandlerI of this schema.
|
java.util.Collection<? extends SchemaInterfaceI> |
getProjectInterfaces()
Returns a collection of all project-specific interfaces defined in the schema.
|
java.lang.String |
getProjectPackage() |
java.lang.String |
getProperty(java.lang.String name) |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultStr) |
java.util.Map |
getRegisteredModuleProviders() |
java.util.Map |
getRelationObjects(java.lang.Object bo,
java.lang.String attPath) |
AbstractScript |
getScript()
Script support for instrumenting etc.
|
AbstractScript |
getScript(java.lang.String language) |
java.lang.String |
getSerializationRelevantDiff(SchemaI another) |
java.lang.String |
getSerialVersionUIDs()
Text with line per entity in the form "entity.fqname':'entity.getSerialVersionUID".
|
AbstractScript |
getSubScript() |
AbstractScript |
getSubScript(java.util.List<ScriptImport> additionalImports) |
AbstractScript |
getSubScript(java.util.List<ScriptImport> additionalImports,
java.lang.Class baseClass) |
AbstractScript |
getSubScript(java.util.List<ScriptImport> additionalImports,
java.lang.Class baseClass,
java.lang.String language) |
AbstractScript |
getSubScript(java.util.List<ScriptImport> additionalImports,
java.lang.String language) |
AbstractScript |
getSubScript(java.lang.String language) |
java.lang.String[] |
getToolTipBundleLookupPath() |
CBOAttributeTypeI |
getType(java.lang.String name)
Type factory.
|
java.util.Map |
getUsedModules() |
java.lang.Object |
getValue(java.lang.Object bo,
AttributeI[] attPath)
Deprecated.
please use
getValue(Object, String) instead, as that one is polymorphic |
java.lang.Object |
getValue(java.lang.Object bo,
java.lang.String attPath)
Setting/getting Values from Objects.
|
java.lang.Object |
getValue(java.lang.Object bo,
java.lang.String attPath,
boolean nullOnPathNull)
Setting/getting Values from Objects.
|
java.lang.Object |
getValue(java.lang.Object bo,
java.lang.String attPath,
boolean nullOnPathNull,
boolean noAttrOnPathNull)
Setting/getting Values from Objects.
|
java.lang.String |
getValueAsString(java.lang.Object bo,
AttributeI[] attPath)
Deprecated.
please use
getValueAsString(Object, String) instead, as that one is polymorphic |
java.lang.String |
getValueAsString(java.lang.Object bo,
java.lang.String attPath)
Setting/getting Values from Objects.
|
java.lang.String |
getValueAsString(java.lang.Object bo,
java.lang.String attPath,
boolean nullIfNullOnPath)
Setting/getting Values from Objects.
|
java.lang.String |
getVersion()
Just version "schema-artikel2008-02-29".
|
boolean |
hasRelationObject(java.lang.Object bo,
java.lang.String attPath,
java.lang.Object toHave) |
void |
releaseDefinitionSource() |
void |
removeRelationObject(java.lang.Object bo,
java.lang.String attPath,
java.lang.Object toRemove) |
void |
setCryptoHandler(CryptoHandlerI ch)
Sets the CryptoHandlerI for this schema.
|
void |
setPermissionHandler(PermissionHandlerI ph)
Sets the PermissionHandlerI for this schema.
|
void |
setProperty(java.lang.String name,
java.lang.String value) |
void |
setValue(java.lang.Object bo,
java.lang.String attPath,
java.lang.Object value)
Setting/getting Values from Objects.
|
void |
setValueAsString(java.lang.Object bo,
java.lang.String attPath,
java.lang.String value)
Setting/getting Values from Objects.
|
void |
setValueAsString(java.lang.Object bo,
java.lang.String attPath,
java.lang.String value,
boolean checkConstraints)
Setting/getting Values from Objects.
|
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkSyntacticallyValid, describeNE, describeNE, describeNE, describeNE, getBundleLookupPath, getEntity, getEntityOrAttributeNameValidationError, isUsingModules, parseGuiTips, parseGuiTips, splitInitialDataLine
public java.lang.String getProperty(java.lang.String name, java.lang.String defaultStr)
getProperty
in interface SchemaI
public java.lang.String getProperty(java.lang.String name)
getProperty
in interface SchemaI
public void setProperty(java.lang.String name, java.lang.String value)
setProperty
in interface SchemaI
public java.lang.String getVersion()
SchemaI
getVersion
in interface SchemaI
public java.lang.String getFingerprint()
SchemaI
SchemaI.getSerialVersionUIDs()
result.getFingerprint
in interface SchemaI
public java.lang.String getSerialVersionUIDs()
SchemaI
getSerialVersionUIDs
in interface SchemaI
public java.lang.String getSerializationRelevantDiff(SchemaI another)
getSerializationRelevantDiff
in interface SchemaI
public java.lang.String flattenToString()
SchemaI
This method creates a flattened, string-based representation of the schema, suitable for transmission
and reconstruction on a remote system. This is crucial for scenarios where services or clients lack a
local schema and need to obtain it from a remote server (e.g., via ServerConnectionI.getRemoteSchema()
).
Important: Keep this method updated whenever the schema XML structure is modified or extended to ensure this mechanism still works!
flattenToString
in interface SchemaI
public void releaseDefinitionSource()
releaseDefinitionSource
in interface SchemaI
public java.lang.String[] getToolTipBundleLookupPath()
getToolTipBundleLookupPath
in interface SchemaI
public java.lang.String getProjectPackage()
getProjectPackage
in interface SchemaI
public java.lang.String getDefaultPackage()
getDefaultPackage
in interface SchemaI
public java.lang.String getCurrentFolder()
getCurrentFolder
in interface SchemaI
public void setCryptoHandler(CryptoHandlerI ch)
SchemaI
setCryptoHandler
in interface SchemaI
public CryptoHandlerI getCryptoHandler()
SchemaI
getCryptoHandler
in interface SchemaI
public void setPermissionHandler(PermissionHandlerI ph)
SchemaI
setPermissionHandler
in interface SchemaI
public PermissionHandlerI getPermissionHandler()
SchemaI
getPermissionHandler
in interface SchemaI
public AbstractScript getScript()
SchemaI
public AbstractScript getScript(java.lang.String language)
public AbstractScript getSubScript()
getSubScript
in interface SchemaI
public AbstractScript getSubScript(java.lang.String language)
getSubScript
in interface SchemaI
public AbstractScript getSubScript(java.util.List<ScriptImport> additionalImports)
getSubScript
in interface SchemaI
public AbstractScript getSubScript(java.util.List<ScriptImport> additionalImports, java.lang.String language)
getSubScript
in interface SchemaI
public AbstractScript getSubScript(java.util.List<ScriptImport> additionalImports, java.lang.Class baseClass)
getSubScript
in interface SchemaI
public AbstractScript getSubScript(java.util.List<ScriptImport> additionalImports, java.lang.Class baseClass, java.lang.String language)
getSubScript
in interface SchemaI
public java.util.List<ScriptImport> getDefaultImports()
getDefaultImports
in interface SchemaI
public ScriptFunctionI createFunction(java.lang.String language, java.lang.String src)
createFunction
in interface SchemaI
public ScriptFunctionI createFunction(java.lang.String language, java.lang.String src, java.lang.String[] parmNames, java.lang.Class[] parmTypes)
createFunction
in interface SchemaI
public ScriptFunctionI createFunction(java.lang.String language, java.lang.String src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType)
createFunction
in interface SchemaI
public ScriptFunctionI createFunction(java.lang.String language, java.lang.String src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String scriptName)
createFunction
in interface SchemaI
public ScriptFunctionI createFunction(java.lang.String language, java.lang.String src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String scriptName, java.lang.String functionName)
createFunction
in interface SchemaI
public ScriptFunctionI createFunction(java.lang.String language, java.lang.String src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String scriptName, java.lang.String functionName, int lineOffset)
createFunction
in interface SchemaI
public ScriptFunctionI createFunctionFromXML(java.lang.String xml, java.lang.String[] parmNames, java.lang.Class[] parmTypes) throws electric.xml.ParseException
createFunctionFromXML
in interface SchemaI
electric.xml.ParseException
public ScriptFunctionI createFunctionFromXML(java.lang.String xml, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType) throws electric.xml.ParseException
createFunctionFromXML
in interface SchemaI
electric.xml.ParseException
public ScriptFunctionI createFunctionFromXML(java.lang.String xml, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String scriptName, java.lang.String functionName) throws electric.xml.ParseException
createFunctionFromXML
in interface SchemaI
electric.xml.ParseException
public ScriptFunctionI createFunctionFromXML(java.lang.String xml, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String scriptName, java.lang.String functionName, int lineOffset) throws electric.xml.ParseException
createFunctionFromXML
in interface SchemaI
electric.xml.ParseException
public EntityI getEntity(java.lang.String name)
public EntityI getEntityForClassName(java.lang.String className)
getEntityForClassName
in interface SchemaI
public EntityI getEntityForClass(java.lang.Class<? extends BOI> clazz)
getEntityForClass
in interface SchemaI
public EntityI getEntityForObject(java.lang.Object o)
getEntityForObject
in interface SchemaI
public java.util.List<EntityI> getEntitiesForInterface(java.lang.Class clazz)
SchemaI
This method retrieves all entities within the schema that implement the specified interface.
The provided class must represent an interface; otherwise, an IllegalArgumentException
is thrown.
getEntitiesForInterface
in interface SchemaI
clazz
- The interface class.public java.util.Collection<? extends SchemaInterfaceI> getInterfaces()
SchemaI
getInterfaces
in interface SchemaI
SchemaInterfaceI
representing all interfaces in the schema.public java.util.Collection<? extends SchemaInterfaceI> getProjectInterfaces()
SchemaI
Project-specific interfaces are those that belong to the current project's package.
getProjectInterfaces
in interface SchemaI
SchemaInterfaceI
representing all project-specific interfaces in the schema.public java.util.List<GDPRConfigurationElement> getGDPRConfigElements()
getGDPRConfigElements
in interface SchemaI
public java.util.List<EntityI> getEntityList()
getEntityList
in interface SchemaI
public EntityI getLowestCommonDenominateEntity(BOI[] bos)
getLowestCommonDenominateEntity
in interface SchemaI
public java.util.List<java.lang.String> getPackageList()
getPackageList
in interface SchemaI
public AttributeI getAttribute(java.lang.Object bo, java.lang.String attPath, boolean noThrow)
SchemaI
getAttribute
in interface SchemaI
public AttributeI getAttribute(java.lang.Object bo, java.lang.String attPath)
SchemaI
getAttribute
in interface SchemaI
public AttributeI[] getFrappingAttributes(BOI bo)
getFrappingAttributes
in interface SchemaI
public AttributeI[] getNonPersistentAttributes(BOI bo)
getNonPersistentAttributes
in interface SchemaI
public java.lang.Object getValue(java.lang.Object bo, java.lang.String attPath, boolean nullOnPathNull, boolean noAttrOnPathNull)
SchemaI
public java.lang.Object getValue(java.lang.Object bo, java.lang.String attPath, boolean nullOnPathNull)
SchemaI
public java.lang.Object getValue(java.lang.Object bo, java.lang.String attPath)
SchemaI
public java.lang.String getValueAsString(java.lang.Object bo, java.lang.String attPath, boolean nullIfNullOnPath)
SchemaI
getValueAsString
in interface SchemaI
public java.lang.String getValueAsString(java.lang.Object bo, java.lang.String attPath)
SchemaI
getValueAsString
in interface SchemaI
public void setValue(java.lang.Object bo, java.lang.String attPath, java.lang.Object value)
SchemaI
public void setValueAsString(java.lang.Object bo, java.lang.String attPath, java.lang.String value, boolean checkConstraints)
SchemaI
setValueAsString
in interface SchemaI
public void setValueAsString(java.lang.Object bo, java.lang.String attPath, java.lang.String value)
SchemaI
setValueAsString
in interface SchemaI
public AnnotatedValue getAnnotatedValue(java.lang.Object bo, java.lang.String attPath)
getAnnotatedValue
in interface SchemaI
public AnnotatedValue getAnnotatedValueAsString(java.lang.Object bo, java.lang.String attPath)
getAnnotatedValueAsString
in interface SchemaI
public java.util.Map getRelationObjects(java.lang.Object bo, java.lang.String attPath)
getRelationObjects
in interface SchemaI
public void addRelationObject(java.lang.Object bo, java.lang.String attPath, java.lang.Object toAdd)
addRelationObject
in interface SchemaI
public void removeRelationObject(java.lang.Object bo, java.lang.String attPath, java.lang.Object toRemove)
removeRelationObject
in interface SchemaI
public boolean hasRelationObject(java.lang.Object bo, java.lang.String attPath, java.lang.Object toHave)
hasRelationObject
in interface SchemaI
public AggregateFunctionI aggregate(java.lang.String aggregateName, BOI bo, java.lang.String pathlist)
public AggregateFunctionI aggregate(java.lang.String aggregateName, BOI bo, java.lang.String pathlist, java.lang.String parameters)
public AggregateFunctionI aggregate(AggregateFunctionI a, BOI bo, java.lang.String pathlist)
public BOI getClosestAvailableAggregateAnchor(BOI bo, java.lang.String pathlist)
getClosestAvailableAggregateAnchor
in interface SchemaI
public BOI getBOForLastPathElement(BOI rootBo, java.lang.String path)
getBOForLastPathElement
in interface SchemaI
public FormatterI getFormatter()
SchemaI
getFormatter
in interface SchemaI
public FormatterI getFormatter(java.lang.Object rootObject)
SchemaI
getFormatter
in interface SchemaI
public FormatterI getFormatter(java.lang.Object rootObject, java.util.Map objectMap)
SchemaI
getFormatter
in interface SchemaI
public FormatterI getFormatter(java.lang.Object rootObject, java.util.Map objectMap, SchemaI onBehalfOfSchema)
SchemaI
getFormatter
in interface SchemaI
public java.lang.String describe(java.lang.Object o, java.lang.String formatdef, java.util.Map variables, SchemaI onBehalfOfSchema)
SchemaI
public java.lang.String describe(java.lang.Object o, java.lang.String formatdef, java.util.Map variables)
SchemaI
public java.lang.String describe(java.lang.Object o, java.lang.String formatdef)
SchemaI
public java.lang.String describe(java.lang.Object o)
SchemaI
public CBOAttributeTypeI getType(java.lang.String name)
SchemaI
public SchemaInterfaceI getInterface(java.lang.String name)
SchemaI
SchemaInterfaceI
for the passed name.getInterface
in interface SchemaI
@Deprecated public java.lang.Object getValue(java.lang.Object bo, AttributeI[] attPath)
getValue(Object, String)
instead, as that one is polymorphic@Deprecated public java.lang.String getValueAsString(java.lang.Object bo, AttributeI[] attPath)
getValueAsString(Object, String)
instead, as that one is polymorphicgetValueAsString
in interface SchemaI
public java.util.Map getDiscriminators()
SchemaI
getDiscriminators
in interface SchemaI
public java.util.Map getRegisteredModuleProviders()
getRegisteredModuleProviders
in interface SchemaI
public java.util.Map getUsedModules()
getUsedModules
in interface SchemaI
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.