public interface ClassDefinition
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static int |
DB_COL__PROP_EXIST_WITH_OTHER_NAME |
static int |
DB_COL_PROP_EXIST |
static int |
NO_DB_COL_PROP_EXIST |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
boolean |
canWriteInstances()
Can one write instances of this class?
|
java.util.Set |
getAllAncestorClasses()
Gets the ancestors of this class (using pattern and direct inheritance if applicable).
|
java.util.List<java.lang.String> |
getAllAncestorClassesListWithoutDuplicates()
Gets the ancestors of this class (using pattern and direct inheritance if applicable).
|
java.util.Iterator |
getAncestorIter()
Gets the ancestors of this class (using pattern
inheritance if applicable).
|
ClassDefinition |
getBaseClass()
Returns this class's base class.
|
java.util.Iterator |
getChildrenIter()
Gets only the direct descendants (children) of this class.
|
ClassDefinition |
getClassGroup()
Returns the class group to which this class belongs.
|
java.lang.String |
getDatabase()
Returns the database (as defined in
Data-Admin-DB-Name ) in
which instances of this class are stored. |
java.lang.String |
getDatabase(boolean isReportDb)
Returns the database (as defined in
Data-Admin-DB-Name ) in
which instances of this class are stored. |
java.lang.String |
getDBProductName()
Deprecated.
|
java.lang.String |
getDBProductName(PublicAPI aPega)
Returns the name of the database program that manages the table in which
this class is stored.
|
java.util.Iterator |
getDescendantIter()
Gets the descendants of this class.
|
ClassDefinition |
getDirectedParent()
Gets the parent of this class.
|
java.util.Map |
getJavaGenerators()
Returns the name of the Java generator classes for this PegaRULES class.
|
java.lang.String |
getJavaWrapperClassName()
Get the Java class used to back up any Java Properties defined on this class.
|
java.util.List |
getKeyPropertyList()
Gets the key properties.
|
java.lang.String |
getName()
Gets the name of this class.
|
ClassDefinition |
getPatternParent()
Gets the pattern parent of this class.
|
java.util.Map |
getPropertyToColumnMap()
Returns an immutable version of the explicit property to column map
|
java.lang.String |
getRuleSetName()
Get this class's ruleset.
|
DatabaseTable |
getTable()
Returns table that a class is mapped to.
|
java.lang.String |
getTableName()
Deprecated.
|
java.lang.String |
getTableName(PublicAPI aPega)
Returns the table in which this class is stored.
|
boolean |
hasAutoGeneratedKey()
Indicates whether this class has an auto generated key defined.
|
boolean |
hasJavaGenerators()
Indicates whether this class has any Java generator classes defined, for any aspect.
|
boolean |
isAncestorOf(java.lang.String aPossibleDescendantName)
Is this class defined to be the ancestor of another?
|
boolean |
isConcrete()
Is this class Concrete?
|
boolean |
isExcludedFromFTIndex()
Returns a boolean indicating, if true, that this class is excluded from full text indexing
|
boolean |
isMappedToBaseTable()
Is this class mapped to the base table?
|
boolean |
isMappedToExternalTable()
Is this class mapped to an external table?
|
boolean |
isPropertyExposed(java.lang.String aPropertyName,
PublicAPI aContext)
Is a property exposed as a column in the
table in which instances of this class live?
|
int |
isPropertyMappedtoAnotherName(java.lang.String aPropertyName,
PublicAPI aContext,
java.lang.StringBuffer aMappedName)
Determine if the passed in property is mapped to another case
sensitive version of the property also mapped to the same
db table
|
boolean |
isRule()
Is this a rule class?
|
boolean |
usesInheritance()
Does this class use inheritance?
|
boolean |
usesPatternInheritance()
Does this class use pattern inheritance?
|
boolean |
usesRuleResolution()
Does this class use rule resolution?
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
static final int DB_COL_PROP_EXIST
static final int NO_DB_COL_PROP_EXIST
static final int DB_COL__PROP_EXIST_WITH_OTHER_NAME
java.lang.String getName()
ClassDefinition getDirectedParent()
null
if this is the
ultimate base classClassDefinition getPatternParent()
null
if noneboolean isRule()
boolean isConcrete()
boolean usesRuleResolution()
java.lang.String getJavaWrapperClassName()
boolean usesInheritance()
boolean usesPatternInheritance()
java.lang.String getRuleSetName()
java.lang.String getDBProductName(PublicAPI aPega) throws DatabaseException
aPega
- the current executable contextConfigurationException
- if classes and/or databases are not
configured properlyDatabaseException
- if there is a problem with the databasejava.lang.String getDBProductName() throws DatabaseException
getDBProductName(com.pega.pegarules.pub.runtime.PublicAPI)
insteadConfigurationException
- if classes and/or databases are not
configured properlyDatabaseException
- if there is a problem with the databasejava.lang.String getTableName() throws DatabaseException
getTableName(com.pega.pegarules.pub.runtime.PublicAPI)
insteadConfigurationException
- if the class and/or table is
not configured correctlyDatabaseException
- if there is a database problemjava.lang.String getTableName(PublicAPI aPega) throws DatabaseException
aPega
- the current executable contextConfigurationException
- if the class and/or table is
not configured correctlyDatabaseException
- if there is a database problemjava.util.List getKeyPropertyList()
String
boolean canWriteInstances()
Code-
Embed-
boolean isPropertyExposed(java.lang.String aPropertyName, PublicAPI aContext) throws DatabaseException
aPropertyName
- the propertyaContext
- the context from which this is calledDatabaseException
- if there is a database problemint isPropertyMappedtoAnotherName(java.lang.String aPropertyName, PublicAPI aContext, java.lang.StringBuffer aMappedName) throws DatabaseException
aPropertyName
- the name of the desired property to be checkedaContext
- is a context to be passed inaMappedName
- if the column is mapped then the string buffer returns
the other mapped column nameDatabaseException
- if there is a database problemjava.util.Iterator getAncestorIter()
ClassDefinition
s.java.util.Iterator getDescendantIter()
ClassDefinition
s.java.util.Iterator getChildrenIter()
ClassDefinition
s.boolean isAncestorOf(java.lang.String aPossibleDescendantName)
aPossibleDescendantName
- name of the other classaPossibleDescendantName
, or if the classes are
the same. Returns false otherwise. Also returns false If either
class does not exist.ClassDefinition getClassGroup()
java.lang.String getDatabase() throws DatabaseException
Data-Admin-DB-Name
) in
which instances of this class are stored.DatabaseException
- if there is a problemjava.lang.String getDatabase(boolean isReportDb) throws DatabaseException
Data-Admin-DB-Name
) in
which instances of this class are stored.isReportDb
- specify if we need to get the reports dbDatabaseException
- if there is a problemboolean isMappedToExternalTable() throws DatabaseException
Obj-
methods.NonexistentTableException
- if the table to which the class is mapped does not existConfigurationException
- if the table to which this class is mapped does not exist, or
if there is some other configuration problemDatabaseException
- if there is a database problemboolean isMappedToBaseTable() throws DatabaseException
DatabaseException
- if there is a database problemDatabaseTable getTable() throws DatabaseException
DatabaseException
- if there is a problemClassDefinition getBaseClass()
@baseclass
.
(This is usually something like Embed-
, Work-
,
Data-
or Rule-
.)@baseclass
, or if
this parent's directed parent is @baseclass
boolean isExcludedFromFTIndex()
java.util.Map getPropertyToColumnMap()
java.util.Map getJavaGenerators()
boolean hasAutoGeneratedKey()
boolean hasJavaGenerators()
java.util.Set getAllAncestorClasses()
java.util.List<java.lang.String> getAllAncestorClassesListWithoutDuplicates()
Copyright © 2015 Pegasystems Inc. All Rights Reserved.