org.outerj.daisy.query.model
Class Identifier.AbstractIdentifier

java.lang.Object
  extended by org.outerj.daisy.query.model.Identifier.AbstractIdentifier
Direct Known Subclasses:
Identifier.AbstractNonAclIdentifier, Identifier.AbstractOutputIdentifier, Identifier.BranchIdIdentifier, Identifier.BranchNameIdentifier, Identifier.CollectionsIdentifier, Identifier.DocumentIdIdentifier, Identifier.DocumentLinkIdentifier, Identifier.DocumentTypeIdentifier, Identifier.FieldIdentifier, Identifier.LanguageIdIdentifier, Identifier.LanguageNameIdentifier, Identifier.LinkFieldBranchIdIdentifier, Identifier.LinkFieldDocumentIdIdentifier, Identifier.LinkFieldLanguageIdIdentifier
Enclosing class:
Identifier

public abstract class Identifier.AbstractIdentifier
extends java.lang.Object


Constructor Summary
Identifier.AbstractIdentifier()
           
 
Method Summary
 int bindPreConditions(java.sql.PreparedStatement stmt, int bindPos)
           
 int bindValueExpr(java.sql.PreparedStatement stmt, int bindPos, QValueType valueType)
           
 boolean canTestappliesTo()
           
 java.lang.Object evaluate(org.outerj.daisy.repository.Document document, org.outerj.daisy.repository.Version version)
           
 void generateSqlValueExpr(java.lang.StringBuffer sql, SqlGenerationContext context)
           
 java.lang.String getName()
           
 java.lang.Object getOutputValue(org.outerj.daisy.repository.Document document, org.outerj.daisy.repository.Version version)
           
 QValueType getOutputValueType()
           
 java.lang.String getSqlPreConditions(SqlGenerationContext context)
           
 java.lang.String getTitle(java.util.Locale locale)
           
 Identifier getValueCountIdentifier()
           
 QValueType getValueType()
           
 AclConditionViolation isAclAllowed()
           
 boolean isMultiValue()
           
 boolean isOutputOnly()
           
 boolean isSymbolic()
           
 java.lang.Object translateSymbolic(ValueExpr valueExpr, org.outerj.daisy.repository.query.EvaluationContext evaluationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Identifier.AbstractIdentifier

public Identifier.AbstractIdentifier()
Method Detail

isMultiValue

public boolean isMultiValue()

getValueCountIdentifier

public Identifier getValueCountIdentifier()

isAclAllowed

public AclConditionViolation isAclAllowed()

getTitle

public java.lang.String getTitle(java.util.Locale locale)

isSymbolic

public boolean isSymbolic()

translateSymbolic

public java.lang.Object translateSymbolic(ValueExpr valueExpr,
                                          org.outerj.daisy.repository.query.EvaluationContext evaluationContext)
                                   throws org.outerj.daisy.repository.query.QueryException
Throws:
org.outerj.daisy.repository.query.QueryException

canTestappliesTo

public boolean canTestappliesTo()

getSqlPreConditions

public java.lang.String getSqlPreConditions(SqlGenerationContext context)
                                     throws org.outerj.daisy.repository.query.QueryException
Throws:
org.outerj.daisy.repository.query.QueryException

bindPreConditions

public int bindPreConditions(java.sql.PreparedStatement stmt,
                             int bindPos)
                      throws java.sql.SQLException,
                             org.outerj.daisy.repository.query.QueryException
Throws:
java.sql.SQLException
org.outerj.daisy.repository.query.QueryException

bindValueExpr

public int bindValueExpr(java.sql.PreparedStatement stmt,
                         int bindPos,
                         QValueType valueType)
                  throws java.sql.SQLException,
                         org.outerj.daisy.repository.query.QueryException
Throws:
java.sql.SQLException
org.outerj.daisy.repository.query.QueryException

isOutputOnly

public boolean isOutputOnly()

getValueType

public QValueType getValueType()

evaluate

public java.lang.Object evaluate(org.outerj.daisy.repository.Document document,
                                 org.outerj.daisy.repository.Version version)
                          throws org.outerj.daisy.repository.query.QueryException
Throws:
org.outerj.daisy.repository.query.QueryException

generateSqlValueExpr

public void generateSqlValueExpr(java.lang.StringBuffer sql,
                                 SqlGenerationContext context)
                          throws org.outerj.daisy.repository.query.QueryException
Throws:
org.outerj.daisy.repository.query.QueryException

getOutputValueType

public QValueType getOutputValueType()

getOutputValue

public java.lang.Object getOutputValue(org.outerj.daisy.repository.Document document,
                                       org.outerj.daisy.repository.Version version)

getName

public java.lang.String getName()


Copyright © -2012 . All Rights Reserved.