public abstract class CommonDomainPersister extends Persister implements DomainPersister, Serializable
Modifier and Type | Field and Description |
---|---|
protected SQLProfile |
sqlProfile |
protected SQLStrings |
sqlStrings |
Constructor and Description |
---|
CommonDomainPersister(SQLProfile sqlProfile,
SQLStrings sqlStrings) |
Modifier and Type | Method and Description |
---|---|
void |
addResourceDomain(SQLConnection connection,
String resourceDomainName) |
void |
addResourceDomain(SQLConnection connection,
String resourceDomainName,
Id<DomainId> parentResourceDomainId) |
abstract void |
deleteDomain(SQLConnection connection,
Id<DomainId> domainId) |
Id<DomainId> |
getResourceDomainId(SQLConnection connection,
String resourceDomainName) |
String |
getResourceDomainNameByResourceId(SQLConnection connection,
Resource resource) |
abstract Set<String> |
getResourceDomainNameDescendants(SQLConnection connection,
String resourceDomainName) |
assertOneRowInserted, assertOneRowUpdated, closeStatement
protected final SQLProfile sqlProfile
protected final SQLStrings sqlStrings
public CommonDomainPersister(SQLProfile sqlProfile, SQLStrings sqlStrings)
public Id<DomainId> getResourceDomainId(SQLConnection connection, String resourceDomainName)
getResourceDomainId
in interface DomainPersister
public String getResourceDomainNameByResourceId(SQLConnection connection, Resource resource)
getResourceDomainNameByResourceId
in interface DomainPersister
public abstract Set<String> getResourceDomainNameDescendants(SQLConnection connection, String resourceDomainName)
getResourceDomainNameDescendants
in interface DomainPersister
public void addResourceDomain(SQLConnection connection, String resourceDomainName)
addResourceDomain
in interface DomainPersister
public void addResourceDomain(SQLConnection connection, String resourceDomainName, Id<DomainId> parentResourceDomainId)
addResourceDomain
in interface DomainPersister
public abstract void deleteDomain(SQLConnection connection, Id<DomainId> domainId)
deleteDomain
in interface DomainPersister
OACC is a Java Application Security Framework developed by Acciente, LLC..
Copyright 2009-2016, Acciente, LLC.All rights reserved.