|
|||||||||
| Home >> All >> org >> jdbf >> engine >> [ repository overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jdbf.engine.repository
Class RepositoryView

java.lang.Objectorg.jdbf.engine.repository.RepositoryView
- All Implemented Interfaces:
- Repository
- public class RepositoryView
- extends java.lang.Object
- implements Repository
- extends java.lang.Object
RepositoryView is the class that represents
the repositoryView specified in repository.
His purpose is that to map the informations of Java object
to RDBMS.
In this way RepositoryView can fills and returns the Java object after
the queries are executed.
| Field Summary | |
private org.jdbf.engine.mapping.BeanDescriptor |
beanDescriptor
ClassDescriptor |
private static java.lang.String |
CLASS_NAME
Class name |
| Constructor Summary | |
RepositoryView()
Create the object |
|
| Method Summary | |
org.jdbf.engine.basic.ObjectMapped |
createObject(java.lang.String name,
java.util.HashMap props)
Create a ObjectMapped by a CLASS_NAME and a hashmap that contains a list with the names of the properties and relative values. |
org.jdbf.engine.mapping.BeanDescriptor |
getBeanDescriptor()
Return BeanDescriptor object. |
java.lang.Object |
getPropertyValue(org.jdbf.engine.basic.ObjectMapped object,
java.lang.String propertyName)
Return the current value of a property specified in propertyName. |
void |
setBeanDescriptor(org.jdbf.engine.mapping.BeanDescriptor beanDescriptor)
Set the BeanDescriptor object |
org.jdbf.engine.basic.ObjectMapped |
setPropertyValue(org.jdbf.engine.basic.ObjectMapped object,
java.lang.String propertyName,
java.lang.Object propertyValue)
Set the value of a property specified in propertyName. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
CLASS_NAME
private static final java.lang.String CLASS_NAME
- Class name
- See Also:
- Constant Field Values
beanDescriptor
private org.jdbf.engine.mapping.BeanDescriptor beanDescriptor
- ClassDescriptor
| Constructor Detail |
RepositoryView
public RepositoryView()
- Create the object
| Method Detail |
createObject
public org.jdbf.engine.basic.ObjectMapped createObject(java.lang.String name, java.util.HashMap props) throws org.jdbf.engine.mapping.MappingException
- Create a ObjectMapped by a CLASS_NAME and a hashmap that contains
a list with the names of the properties and relative values.
If props is null the object created is null.
getBeanDescriptor
public org.jdbf.engine.mapping.BeanDescriptor getBeanDescriptor()
- Return BeanDescriptor object.
getPropertyValue
public java.lang.Object getPropertyValue(org.jdbf.engine.basic.ObjectMapped object, java.lang.String propertyName) throws org.jdbf.engine.mapping.MappingException
- Return the current value of a property specified in propertyName.
If the property isn't specified in repository, UnreportedPropertyException throws.
- Specified by:
getPropertyValuein interfaceRepository
setBeanDescriptor
public void setBeanDescriptor(org.jdbf.engine.mapping.BeanDescriptor beanDescriptor)
- Set the BeanDescriptor object
setPropertyValue
public org.jdbf.engine.basic.ObjectMapped setPropertyValue(org.jdbf.engine.basic.ObjectMapped object, java.lang.String propertyName, java.lang.Object propertyValue) throws org.jdbf.engine.mapping.MappingException
- Set the value of a property specified in propertyName.
If the property isn't specified in repository, UnreportedPropertyException throws.
- Specified by:
setPropertyValuein interfaceRepository
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> jdbf >> engine >> [ repository overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jdbf.engine.repository.RepositoryView