com.adaptrex.core.persistence.api
Class AdaptrexCollectionType

java.lang.Object
  extended by com.adaptrex.core.persistence.api.AdaptrexCollectionType
Direct Known Subclasses:
CayenneCollectionType, JPACollectionType

public abstract class AdaptrexCollectionType
extends Object


Field Summary
protected  Class<?> collectionType
           
protected  FieldDefinition idsFieldDefinition
           
protected  Class<?> itemType
           
protected  String name
           
protected  SecureField secureField
           
 
Constructor Summary
AdaptrexCollectionType(String name, Class<?> collectionType, Class<?> itemType, SecureEntity secureEntity)
           
 
Method Summary
abstract  Object getCollectionFrom(Object entity)
           
 Class<?> getCollectionType()
           
 FieldDefinition getIdsFieldDefinition()
           
 Class<?> getItemType()
           
 String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

collectionType

protected Class<?> collectionType

itemType

protected Class<?> itemType

secureField

protected SecureField secureField

idsFieldDefinition

protected FieldDefinition idsFieldDefinition
Constructor Detail

AdaptrexCollectionType

public AdaptrexCollectionType(String name,
                              Class<?> collectionType,
                              Class<?> itemType,
                              SecureEntity secureEntity)
Method Detail

getName

public String getName()

getIdsFieldDefinition

public FieldDefinition getIdsFieldDefinition()

getCollectionType

public Class<?> getCollectionType()

getItemType

public Class<?> getItemType()

getCollectionFrom

public abstract Object getCollectionFrom(Object entity)
                                  throws Exception
Throws:
Exception


Copyright © 2012 Adaptrex, LLC. All Rights Reserved.