Uses of Class
org.apache.ojb.broker.metadata.FieldDescriptor

Packages that use FieldDescriptor
org.apache.ojb.broker.accesslayer   
org.apache.ojb.broker.accesslayer.sql This package contains the OJB SQL generator classes. 
org.apache.ojb.broker.metadata   
org.apache.ojb.broker.metadata.torque   
org.apache.ojb.broker.util   
org.apache.ojb.broker.util.sequence This package contains classes that provide the OJB sequence numering. 
 

Uses of FieldDescriptor in org.apache.ojb.broker.accesslayer
 

Methods in org.apache.ojb.broker.accesslayer with parameters of type FieldDescriptor
protected  Criteria BasePrefetcher.buildPrefetchCriteria(Collection ids, FieldDescriptor[] fields)
           
protected  QueryByCriteria BasePrefetcher.buildPrefetchQuery(Class clazz, Collection ids, FieldDescriptor[] fields)
           
protected  QueryByCriteria BasePrefetcher.buildPrefetchQuery(Collection ids, FieldDescriptor[] fields)
           
protected  void RowReaderDefaultImpl.readValuesFrom(ResultSetAndStatement rs_stmt, Map row, FieldDescriptor[] fields)
           
 

Uses of FieldDescriptor in org.apache.ojb.broker.accesslayer.sql
 

Methods in org.apache.ojb.broker.accesslayer.sql that return FieldDescriptor
protected  FieldDescriptor[] SqlSelectStatement.buildFieldsForSelect(ClassDescriptor cld)
          Return the Fields to be selected.
protected  FieldDescriptor SqlQueryStatement.getFieldDescriptor(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.TableAlias aTableAlias, SqlHelper.PathInfo aPathInfo)
          Get the FieldDescriptor for the PathInfo
protected  FieldDescriptor[] SqlSelectStatement.getFieldsForSelect()
          Return the Fields to be selected.
 

Methods in org.apache.ojb.broker.accesslayer.sql with parameters of type FieldDescriptor
protected  void SqlSelectStatement.appendColumn(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.TableAlias anAlias, FieldDescriptor field, StringBuffer buf)
          Append a Column with alias: A0 name -> A0.name
protected  void SqlSelectStatement.appendField(FieldDescriptor fld, StringBuffer buf)
          Append column name.
protected  void SqlPkStatement.appendWhereClause(FieldDescriptor[] fields, StringBuffer stmt)
          Generate a sql where-clause for the array of fields
 int SelectStatement.getColumnIndex(FieldDescriptor fld)
          Returns the column index of the specified FieldDescriptor in the ResultSet after performing the query.
 int SqlSelectStatement.getColumnIndex(FieldDescriptor fld)
           
 

Uses of FieldDescriptor in org.apache.ojb.broker.metadata
 

Subclasses of FieldDescriptor in org.apache.ojb.broker.metadata
 class AnonymousFieldDescriptor
           
 

Methods in org.apache.ojb.broker.metadata that return FieldDescriptor
 FieldDescriptor[] ClassDescriptor.getAllRwFields()
          Returns array of read/write FieldDescriptors.
 FieldDescriptor ClassDescriptor.getAutoIncrementField()
          Deprecated. does not make sense because it's possible to define more than one autoincrement field. Alternative see ClassDescriptor.getAutoIncrementFields()
 FieldDescriptor[] ClassDescriptor.getAutoIncrementFields()
           
 FieldDescriptor[] ClassDescriptor.getFieldDescriptions()
          Returns array of all FieldDescriptors.
 FieldDescriptor[] ClassDescriptor.getFieldDescriptor(boolean withInherited)
          Return an array of all FieldDescriptor for this represented class, if parameter withInherited is true all inherited descriptor of declared super classes are included.
 FieldDescriptor ClassDescriptor.getFieldDescriptorByIndex(int index)
          Returns the matching FieldDescriptor.
 FieldDescriptor ClassDescriptor.getFieldDescriptorByName(String name)
          Returns the matching FieldDescriptor - only fields of the current class will be scanned, to include fields defined the the super-classes too, use method ClassDescriptor.getFieldDescriptor(boolean).
 FieldDescriptor ClassDescriptor.getFieldDescriptorForPath(String aPath)
          return the FieldDescriptor for the Attribute referenced in the path
the path may contain simple attribut names, functions and path expressions using relationships
ie: name, avg(price), adress.street
 FieldDescriptor ClassDescriptor.getFieldDescriptorForPath(String aPath, Map pathHints)
          return the FieldDescriptor for the Attribute referenced in the path
the path may contain simple attribut names, functions and path expressions using relationships
ie: name, avg(price), adress.street
 FieldDescriptor[] ClassDescriptor.getFieldDescriptorNonPk(boolean withInherited)
          Return an array of NON-PK FieldDescriptor, if parameter withInherited is true all inherited descriptor of declared super classes are included.
 FieldDescriptor[] DescriptorRepository.getFieldDescriptorsForMultiMappedTable(ClassDescriptor targetCld)
           
 FieldDescriptor[] ClassDescriptor.getFieldDescriptorsInHeirarchy()
           
 FieldDescriptor ArgumentDescriptor.getFieldRef()
          Retrieve the field descriptor that this argument is related to.
 FieldDescriptor[] ObjectReferenceDescriptor.getForeignKeyFieldDescriptors(ClassDescriptor cld)
           
 FieldDescriptor[] ClassDescriptor.getLockingFields()
          return an array of FieldDescription for optimistic locking sorted ascending according to the field-descriptions getOrder() property
 FieldDescriptor[] ClassDescriptor.getNonPkFields()
          return an array of NONPK-FieldDescription sorted ascending according to the field-descriptions getOrder() property
 FieldDescriptor[] ClassDescriptor.getNonPkRwFields()
          Returns array of read/write non pk FieldDescriptors.
 FieldDescriptor ClassDescriptor.getOjbConcreteClassField()
          Returns the ojbConcreteClass field or null if none defined.
 FieldDescriptor[] ClassDescriptor.getPkFields()
          Return an array of PK FieldDescription sorted ascending according to the field-descriptions getOrder() property
 FieldDescriptor ProcedureDescriptor.getReturnValueFieldRef()
          Retrieve the field descriptor that will receive the return value from the procedure/function...
 

Methods in org.apache.ojb.broker.metadata with parameters of type FieldDescriptor
protected  void ProcedureDescriptor.addArguments(FieldDescriptor[] field)
          Set up arguments for each FieldDescriptor in an array.
 void ClassDescriptor.addFieldDescriptor(FieldDescriptor fld)
          adds a FIELDDESCRIPTOR to this ClassDescriptor.
 boolean ClassDescriptor.removeFieldDescriptor(FieldDescriptor fld)
           
 void ProcedureDescriptor.setReturnValueFieldRef(FieldDescriptor fieldDescriptor)
          Change the the field descriptor that will receive the return value from the procedure/function...
 

Uses of FieldDescriptor in org.apache.ojb.broker.metadata.torque
 

Methods in org.apache.ojb.broker.metadata.torque with parameters of type FieldDescriptor
 void TableDescriptor.addColumn(FieldDescriptor column)
           
 void TorqueFieldGenerator.generateFieldDescriptors(FieldDescriptor[] descriptors, StringBuffer buffer)
           
 void TorqueFieldGenerator.generateMappingFieldDescriptors(FieldDescriptor[] descriptors, StringBuffer buffer)
           
 

Uses of FieldDescriptor in org.apache.ojb.broker.util
 

Methods in org.apache.ojb.broker.util with parameters of type FieldDescriptor
 boolean BrokerHelper.assertValidPksForStore(FieldDescriptor[] fieldDescriptors, Object[] pkValues)
          returns true if the primary key fields are valid for store, else false.
 ValueContainer[] BrokerHelper.getValuesForObject(FieldDescriptor[] fields, Object obj, boolean convertToSql)
           
 ValueContainer[] BrokerHelper.getValuesForObject(FieldDescriptor[] fields, Object obj, boolean convertToSql, boolean assignAutoincrement)
          Get the values of the fields for an obj Autoincrement values are automatically set.
 boolean BrokerHelper.representsNull(FieldDescriptor fld, Object aValue)
          Decide if the given object value represents 'null'.
- If given value is 'null' itself, true will be returned
- If given value is instance of Number with value 0 and the field-descriptor represents a primitive field, true will be returned
- If given value is instance of String with length 0 and the field-descriptor is a primary key, true will be returned
 

Uses of FieldDescriptor in org.apache.ojb.broker.util.sequence
 

Methods in org.apache.ojb.broker.util.sequence with parameters of type FieldDescriptor
static String SequenceManagerHelper.buildSequenceName(PersistenceBroker brokerForClass, FieldDescriptor field, boolean autoNaming)
          Returns a unique sequence name (unique across all extents).
 String AbstractSequenceManager.calculateSequenceName(FieldDescriptor field)
           
protected  void SequenceManagerStoredProcedureImpl.createSequence(PersistenceBroker broker, FieldDescriptor field, String sequenceName, long maxKey)
          Creates new row in table
static long SequenceManagerHelper.getMaxForExtent(PersistenceBroker brokerForClass, FieldDescriptor field)
          Lookup all tables associated with given class (search all extent classes) to find the current maximum value for the given field.
static long SequenceManagerHelper.getMaxId(PersistenceBroker brokerForClass, Class topLevel, FieldDescriptor original)
          Search down all extent classes and return max of all found PK values.
static long SequenceManagerHelper.getMaxIdForClass(PersistenceBroker brokerForClass, ClassDescriptor cldForOriginalOrExtent, FieldDescriptor original)
          lookup current maximum value for a single field in table the given class descriptor was associated.
protected  long SequenceManagerHighLowImpl.getMaxKeyForSequence(PersistenceBroker broker, FieldDescriptor field)
           
protected  HighLowSequence SequenceManagerHighLowImpl.getSequence(PersistenceBroker brokerForSequence, FieldDescriptor field, String sequenceName)
           
protected  int SequenceManagerMSSQLGuidImpl.getUniqueId(FieldDescriptor field)
          Returns a new unique int for the given Class and fieldname.
protected  int SequenceManagerNextValImpl.getUniqueId(FieldDescriptor field)
          returns a unique int value for class clazz and field fieldName.
protected  long SequenceManagerNativeImpl.getUniqueLong(FieldDescriptor field)
          returns a negative value
protected  long SequenceManagerInMemoryImpl.getUniqueLong(FieldDescriptor field)
           
protected  long SequenceManagerStoredProcedureImpl.getUniqueLong(FieldDescriptor field)
          Gets the actual key - will create a new row with the max key of table if it does not exist.
protected  long SequenceManagerTransientImpl.getUniqueLong(FieldDescriptor field)
           
protected  long SequenceManagerMSSQLGuidImpl.getUniqueLong(FieldDescriptor field)
          Returns a new unique int for the given Class and fieldname.
protected  long SequenceManagerNextValImpl.getUniqueLong(FieldDescriptor field)
          returns a unique long value for class clazz and field fieldName.
protected abstract  long AbstractSequenceManager.getUniqueLong(FieldDescriptor field)
          returns a unique long value for field.
protected  long SequenceManagerSeqHiLoImpl.getUniqueLong(FieldDescriptor field)
           
protected  long SequenceManagerHighLowImpl.getUniqueLong(FieldDescriptor field)
           
protected  String SequenceManagerMSSQLGuidImpl.getUniqueString(FieldDescriptor field)
          returns a unique String for given field.
 Object SequenceManager.getUniqueValue(FieldDescriptor field)
          This method is called to get an unique value before the object is written to persistent storage.
 Object SequenceManagerTransientImpl.getUniqueValue(FieldDescriptor field)
          Returns a unique object for the given field attribute.
 Object SequenceManagerMSSQLGuidImpl.getUniqueValue(FieldDescriptor field)
           
 Object AbstractSequenceManager.getUniqueValue(FieldDescriptor field)
          Returns a unique object for the given field attribute.
protected  HighLowSequence SequenceManagerHighLowImpl.lookupStoreSequence(PersistenceBroker broker, FieldDescriptor field, String seqName)
           
protected  HighLowSequence SequenceManagerHighLowImpl.newSequenceObject(String sequenceName, FieldDescriptor field)
           
 



Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.