|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.dataobjects.jdbc.JoinedDigesterBean
Not yet released - do not use in your own code yet. This class provides the Digester information to parse the join definitions so that we can define the join definition in an XML file.
| Nested Class Summary | |
class |
JoinedDigesterBean.DigesterJoinedDataObject
Bean representing all the dataobject information. |
class |
JoinedDigesterBean.DigesterJoinRelations
Bean representing all the joined relation information. |
| Constructor Summary | |
JoinedDigesterBean()
|
|
| Method Summary | |
void |
addDataObject(String className,
String definitionName,
String alias)
|
void |
addDataObject(String className,
String definitionName,
String alias,
String fieldExpressionList)
|
void |
addRelation(String localAlias,
String localKey,
String foreignAlias,
String foreignKey,
String joinType)
Adds a relation to the data we've collected from Digester |
org.apache.commons.digester.Digester |
buildDigester()
Builds the digester so it is ready to parse rules. |
void |
digest(org.apache.commons.digester.Digester parser,
URL location)
Mergest the data from the given URL into the current object. |
List |
getDataObjects()
Retrieve a list of the dataobjects for this join. |
String |
getDescription()
|
Map |
getPermissions()
Retrieve the permissions |
List |
getRelations()
Retrieves a list of the relations with this bean. |
boolean |
isDistinct()
Returns whether the join is distinct or not. |
void |
loadJoinData(URL location)
Loads the join data by constructing the Digester object and then merging the given URL into the current data. |
void |
setDescription(String description)
|
void |
setDistinct(boolean distinct)
Sets whether the join is distinct or not. |
void |
setDistinct(Boolean newValue)
Sets whether the join is distinct or not with a Boolean value. |
void |
setDistinct(String newValue)
Sets whether the join is distinct or not with a string value. |
void |
setPermissions(Boolean create,
Boolean read,
Boolean update,
Boolean delete)
Set the permissions of the join |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JoinedDigesterBean()
| Method Detail |
public void addDataObject(String className,
String definitionName,
String alias,
String fieldExpressionList)
public void addDataObject(String className,
String definitionName,
String alias)
public void addRelation(String localAlias,
String localKey,
String foreignAlias,
String foreignKey,
String joinType)
localAlias - the local 'short name' of the dbobjectlocalKey - the local 'key' of the dbobject [Pipe delimited for multiple keys]foreignAlias - the foreign 'short name' of the dbobjectforeignKey - the foreign keys (Pipe Delimited for multiple keys)joinType - The type of join. Either left|right|inner or blankpublic void loadJoinData(URL location)
location - the location to load the data from.
public void setPermissions(Boolean create,
Boolean read,
Boolean update,
Boolean delete)
create - create permissionread - read permissionupdate - update permissiondelete - delete permissionpublic Map getPermissions()
public org.apache.commons.digester.Digester buildDigester()
public void digest(org.apache.commons.digester.Digester parser,
URL location)
parser - the constructed Digester objectlocation - the URL location to load.public List getDataObjects()
public boolean isDistinct()
public void setDistinct(boolean distinct)
distinct - new distinct value.public void setDistinct(Boolean newValue)
newValue - the new String valuepublic void setDistinct(String newValue)
newValue - the new String valuepublic List getRelations()
public String getDescription()
public void setDescription(String description)
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||