|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.outerj.daisy.query.model.Identifier
Constructor Summary | |
|
Identifier(java.lang.String id)
|
protected |
Identifier(java.lang.String id,
QueryContext context,
org.outerj.daisy.query.model.Identifier.DelegateIdentifier delegate)
|
Method Summary | |
int |
bindSql(java.sql.PreparedStatement stmt,
int bindPos)
|
boolean |
canTestAppliesTo()
Must only be implemented by classes for which isAclAllowed returns null. |
void |
convertLiteral(Literal literal)
See isSymbolic() . |
void |
generateSql(java.lang.StringBuffer sql,
SqlGenerationContext context)
|
java.lang.Object |
getAppliesToValue(long documentType,
long collection)
Must only be implemented by classes for which canTestAppliesTo() returns true. |
org.outerj.daisy.query.model.Identifier.DelegateIdentifier |
getDelegate()
|
java.lang.String |
getName()
|
java.lang.Object |
getOutputValue(org.outerj.daisy.repository.Document document,
org.outerj.daisy.repository.Version version)
Returns the output value of this identifier for the given document. |
OutputValueType |
getOutputValueType()
Identifies the type of data returned from the getOutputValue(org.outerj.daisy.repository.Document, org.outerj.daisy.repository.Version) method. |
java.lang.String |
getTitle(java.util.Locale locale)
|
java.lang.Object |
getValue(org.outerj.daisy.repository.Document document)
Returns the value of this identifier for the given document. |
org.outerj.daisy.repository.ValueType |
getValueType()
Identifies the type of data returned from the getValue(org.outerj.daisy.repository.Document) method. |
AclConditionViolation |
isAclAllowed()
May this identifier be used in ACL evaluation expressions? |
boolean |
isComparable()
|
boolean |
isMultiValue()
|
boolean |
isOutputOnly()
If true, then this identifier does not present a field on which can be searched, and only the method getOutputValue should be called on it. |
boolean |
isSymbolic()
A symbolic identifier is an identifier that identifies an object by name in the query, but uses an ID to search on the database. |
void |
prepare(QueryContext context)
|
void |
prepareInWhereClause(QueryContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Identifier(java.lang.String id)
protected Identifier(java.lang.String id, QueryContext context, org.outerj.daisy.query.model.Identifier.DelegateIdentifier delegate)
Method Detail |
public java.lang.String getName()
public void prepare(QueryContext context) throws QueryException
QueryException
public void prepareInWhereClause(QueryContext context) throws QueryException
QueryException
public void generateSql(java.lang.StringBuffer sql, SqlGenerationContext context)
public int bindSql(java.sql.PreparedStatement stmt, int bindPos) throws java.sql.SQLException
java.sql.SQLException
public org.outerj.daisy.repository.ValueType getValueType()
getValue(org.outerj.daisy.repository.Document)
method.
public boolean isMultiValue()
public java.lang.Object getValue(org.outerj.daisy.repository.Document document)
public OutputValueType getOutputValueType()
getOutputValue(org.outerj.daisy.repository.Document, org.outerj.daisy.repository.Version)
method.
public final java.lang.Object getOutputValue(org.outerj.daisy.repository.Document document, org.outerj.daisy.repository.Version version)
public java.lang.String getTitle(java.util.Locale locale)
public AclConditionViolation isAclAllowed()
public boolean canTestAppliesTo()
public java.lang.Object getAppliesToValue(long documentType, long collection)
public boolean isSymbolic()
A symbolic identifier requires that literals be converted using
convertLiteral(org.outerj.daisy.query.model.Literal)
.
public void convertLiteral(Literal literal) throws QueryException
isSymbolic()
.
It is not needed nor required to call this method if isSymbolic returns false.
QueryException
public boolean isOutputOnly()
public boolean isComparable()
public org.outerj.daisy.query.model.Identifier.DelegateIdentifier getDelegate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |