Package com.avoka.fc.core.dao
Class SchemaSeedDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.SchemaSeedDao
-
public class SchemaSeedDao extends AbstractDao
Provides a DAO for the SchemaSeed entity.- See Also:
SchemaSeed
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description SchemaSeedDao()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copySchemaSeedAttributes(SchemaSeed source, SchemaSeed target, String versionNumber)
Copy the source SchemaSeed attributes and properties to the target SchemaSeed.SchemaSeedVO
getCachedSchemaSeedVO(TemplateVersion version)
Gets the schema with the specific template version.Integer
getNextExtractDataSequenceNumber(String schemaSeedId)
Return the next sequence number for the given schema seed.SchemaSeed
getSchemaForId(Object id)
Return the schema seed with the specified OIDSchemaSeed
getSchemaForVersion(TemplateVersion version)
Gets the schema with the specific template version.static void
invalidateCache()
Invalidate the schema seed cache.-
Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
Method Detail
-
getSchemaForId
public SchemaSeed getSchemaForId(Object id)
Return the schema seed with the specified OID- Parameters:
id
- the OID- Returns:
- the matching schema seed, or null if not found
-
getCachedSchemaSeedVO
public SchemaSeedVO getCachedSchemaSeedVO(TemplateVersion version)
Gets the schema with the specific template version.- Parameters:
version
- the template version- Returns:
- the schema for the specific template version
-
getSchemaForVersion
public SchemaSeed getSchemaForVersion(TemplateVersion version)
Gets the schema with the specific template version.- Parameters:
version
- the template version- Returns:
- the schema for the specific template version
-
getNextExtractDataSequenceNumber
public Integer getNextExtractDataSequenceNumber(String schemaSeedId)
Return the next sequence number for the given schema seed.- Parameters:
schemaSeedId
- the schema seed identifier- Returns:
- the next sequence number for the given schema seed
-
copySchemaSeedAttributes
public void copySchemaSeedAttributes(SchemaSeed source, SchemaSeed target, String versionNumber)
Copy the source SchemaSeed attributes and properties to the target SchemaSeed.- Parameters:
source
- the sourcetarget
- the targetversionNumber
- the version number
-
invalidateCache
public static void invalidateCache()
Invalidate the schema seed cache.- Since:
- 5.1.0
-
-