|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--velosurf.model.Attribute
This class represents an attribute in the object model
Field Summary | |
protected DBConnection |
mDB
database connection |
protected Entity |
mEntity
parent entity |
protected java.lang.String |
mName
name |
protected java.util.List |
mParamNames
list of the parameter names |
protected java.lang.String |
mQuery
attribute query |
protected Entity |
mResultEntity
for row and rowset attributes, the resulting entity (if specified) |
protected int |
mType
attribute type |
static int |
ROW
constant meaning the result is a single row |
static int |
ROWSET
constant meaning the result is a rowset |
static int |
SCALAR
constant meaning the result is a scalar |
static int |
UNDEFINED
constant meaning the return type is undefined |
Constructor Summary | |
Attribute(DBConnection inDB,
java.lang.String inDefinition)
Deprecated. builds a new Attribute |
|
Attribute(Entity inEntity,
org.jdom.Element inJDOMAttribute)
builds a new attribute |
Method Summary | |
java.util.List |
buildArrayList(DataAccessor inSource)
builds the list of parameter values - do not use directly |
java.lang.Object |
evaluate(DataAccessor inSource)
evaluate this scalar attribute |
java.lang.Object |
fetch(DataAccessor inSource)
fetch the row result of this attribute |
DBConnection |
getDB()
gets the database connection |
java.lang.String |
getName()
gets the name of the attribute |
int |
getType()
gets the type of this attribute |
RowIterator |
query(DataAccessor inSource)
query the resultset for this multivalued attribute |
RowIterator |
query(DataAccessor inSource,
java.util.List inRefineCriteria,
java.lang.String inOrder)
query the rowset for this attribute |
java.lang.String |
toString()
debug method |
int |
update(DataAccessor inSource)
do an update via this attribute : deprecated, prefer to use an action instead |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int UNDEFINED
public static final int ROW
public static final int ROWSET
public static final int SCALAR
protected DBConnection mDB
protected java.lang.String mName
protected Entity mEntity
protected Entity mResultEntity
protected java.util.List mParamNames
protected java.lang.String mQuery
protected int mType
Constructor Detail |
public Attribute(DBConnection inDB, java.lang.String inDefinition) throws java.io.IOException, java.sql.SQLException
inDB
- database connectioninDefinition
- string definition for this attributejava.io.IOException
- the definition is not validjava.sql.SQLException
- thrown by the databasepublic Attribute(Entity inEntity, org.jdom.Element inJDOMAttribute)
inEntity
- parent entityinJDOMAttribute
- XML tree for this attributeMethod Detail |
public java.lang.Object fetch(DataAccessor inSource) throws java.sql.SQLException
inSource
- source objectjava.sql.SQLException
- when thrown by the databasepublic RowIterator query(DataAccessor inSource) throws java.sql.SQLException
inSource
- the source objectjava.sql.SQLException
- when thrown from the databasepublic RowIterator query(DataAccessor inSource, java.util.List inRefineCriteria, java.lang.String inOrder) throws java.sql.SQLException
inSource
- source objectinRefineCriteria
- refine criteriainOrder
- order clausejava.sql.SQLException
- when thrown by the databasepublic java.lang.Object evaluate(DataAccessor inSource) throws java.sql.SQLException
inSource
- source objectjava.sql.SQLException
- when thrown from the databasepublic int update(DataAccessor inSource) throws java.sql.SQLException
inSource
- source objectjava.sql.SQLException
- when thrown from the databasepublic int getType()
public java.util.List buildArrayList(DataAccessor inSource) throws java.sql.SQLException
inSource
- source objectjava.sql.SQLException
- thrown by the database enginepublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public DBConnection getDB()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |