org.caleigo.core.meta
Class CustomDataSourceDescriptor
java.lang.Object
org.caleigo.core.AbstractDataSourceDescriptor
org.caleigo.core.meta.CustomDataSourceDescriptor
- All Implemented Interfaces:
- IDataSourceDescriptor, java.io.Serializable
- class CustomDataSourceDescriptor
- extends AbstractDataSourceDescriptor
- Version:
- 1.0
- Author:
- Mattias Hagstrand
Constructor Summary |
CustomDataSourceDescriptor(java.lang.String codeName,
java.lang.String sourceName,
java.lang.String displayName,
java.lang.String version,
boolean readOnly)
|
Methods inherited from class org.caleigo.core.AbstractDataSourceDescriptor |
contains, createFieldDescriptor, getCodeName, getDefaultDataService, getDefaultDataSource, getDisplayName, getEntityDescriptors, getSourceName, getVersion, isReadOnly, setDefaultDataSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CustomDataSourceDescriptor
public CustomDataSourceDescriptor(java.lang.String codeName,
java.lang.String sourceName,
java.lang.String displayName,
java.lang.String version,
boolean readOnly)
getRegisteredCustomDataSourceDescriptor
static CustomDataSourceDescriptor getRegisteredCustomDataSourceDescriptor(java.lang.String codeName)
- Returns a CustomDataSourceDescriptor with the given code name if it has
been created, otherwise null.
All CustomDataSourceDescriptor that are created are automatically registered.
This mehtod has package scope since it is only used to handle serialization
of custom descriptors.
getEntityDescriptorCount
public int getEntityDescriptorCount()
- Specified by:
getEntityDescriptorCount
in interface IDataSourceDescriptor
- Overrides:
getEntityDescriptorCount
in class AbstractDataSourceDescriptor
getEntityDescriptor
public IEntityDescriptor getEntityDescriptor(int index)
- Specified by:
getEntityDescriptor
in interface IDataSourceDescriptor
- Overrides:
getEntityDescriptor
in class AbstractDataSourceDescriptor
getEntityDescriptor
public IEntityDescriptor getEntityDescriptor(java.lang.String codeName)
- Description copied from class:
AbstractDataSourceDescriptor
- Note that this method could be expensive to call.
- Specified by:
getEntityDescriptor
in interface IDataSourceDescriptor
- Overrides:
getEntityDescriptor
in class AbstractDataSourceDescriptor
writeReplace
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
- Overrides:
writeReplace
in class AbstractDataSourceDescriptor
- Throws:
java.io.ObjectStreamException
finalize
protected void finalize()
addEntityDescriptor
protected void addEntityDescriptor(IEntityDescriptor entityDescriptor)
getEntityDescriptorBySourceName
protected IEntityDescriptor getEntityDescriptorBySourceName(java.lang.String sourceName)
Copyright © 2005 Caleigo. All Rights Reserved.