Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdbf.engine.repository
Class RepositoryView  view RepositoryView download RepositoryView.java

java.lang.Object
  extended byorg.jdbf.engine.repository.RepositoryView
All Implemented Interfaces:
Repository

public class RepositoryView
extends java.lang.Object
implements Repository

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:
getPropertyValue in interface Repository

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:
setPropertyValue in interface Repository

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()).