LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.java
Class LyJavaClass

java.lang.Object
  extended by leon.peer.LyPeerClass
      extended by leon.peer.java.LyJavaClass
All Implemented Interfaces:
LyClass

public class LyJavaClass
extends LyPeerClass

This class is the implementation of the interface LyClass for Java data classes.

See Also:
LyClass, LyAttributeField

Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.peer.LyPeerClass
VALUE_NOT_LOADED
 
Constructor Summary
LyJavaClass()
          empty constructor.
LyJavaClass(java.lang.String id, java.lang.String javaClassName)
          Default constructor.
 
Method Summary
 java.lang.Object newInstance()
          Creates a new instance of this class.
 void rehash(java.lang.Object object)
          Recompute the object id of the specified object.
 void setName(java.lang.String name)
          Sets name of the class.
 
Methods inherited from class leon.peer.LyPeerClass
addField, addIdField, copy, dump, getDataSource, getField, getField, getFieldCount, getFields, getId, getIdFields, getIndex, getName, getObjectClass, getObjectId, getObjectIdNoCache, getValue, getValues, removeField, setDataSource, setId, setValue, toString, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyJavaClass

public LyJavaClass()
empty constructor.


LyJavaClass

public LyJavaClass(java.lang.String id,
                   java.lang.String javaClassName)
Default constructor.

Method Detail

setName

public void setName(java.lang.String name)
Sets name of the class.

Overrides:
setName in class LyPeerClass
Parameters:
name - Name of the class.
Throws:
java.lang.IllegalStateException - If the class has already a name.

newInstance

public java.lang.Object newInstance()
                             throws java.lang.InstantiationException,
                                    java.lang.IllegalAccessException
Creates a new instance of this class.

Returns:
New instance of this class.
Throws:
java.lang.InstantiationException - If an application tries to instantiate an abstract class or an interface, or if the instantiation fails for some other reason.
java.lang.IllegalAccessException - If the class or initializer is not accessible.

rehash

public void rehash(java.lang.Object object)
Recompute the object id of the specified object.

Parameters:
object - object to rehash

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com