com.trendmicro.grid.acl.ds.jpa
Class JpaVendorRepository

java.lang.Object
  extended by com.trendmicro.grid.acl.ds.jpa.JpaVendorRepository
All Implemented Interfaces:
com.trendmicro.grid.acl.ds.Repository, com.trendmicro.grid.acl.ds.VendorRepository

@Repository
@Transactional(readOnly=true)
public class JpaVendorRepository
extends Object
implements com.trendmicro.grid.acl.ds.VendorRepository

Implements VendorRepository using JPA.

Version:
1.0
Author:
Juergen_Kellerer, 2010-06-11

Constructor Summary
JpaVendorRepository()
           
 
Method Summary
 JpaVendor create(String name, String displayName, com.trendmicro.grid.acl.metadata.Metadata metadata)
          
 JpaVendor getByName(String name)
          
static int getPageSize()
           
 JpaVendor getReferenceByName(String name)
          Returns a lightweight reference used to satisfy foreign key constraints.
 com.trendmicro.grid.acl.l0.datatypes.NameListPage listNames(int pageNumber)
          
static void setPageSize(int pageSize)
           
 void update(com.trendmicro.grid.acl.l0.datatypes.Vendor vendor)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaVendorRepository

public JpaVendorRepository()
Method Detail

getPageSize

public static int getPageSize()

setPageSize

public static void setPageSize(int pageSize)

create

@Transactional(readOnly=false)
public JpaVendor create(String name,
                                      String displayName,
                                      com.trendmicro.grid.acl.metadata.Metadata metadata)

Specified by:
create in interface com.trendmicro.grid.acl.ds.VendorRepository

update

@Transactional(readOnly=false)
public void update(com.trendmicro.grid.acl.l0.datatypes.Vendor vendor)

Specified by:
update in interface com.trendmicro.grid.acl.ds.VendorRepository

getByName

public JpaVendor getByName(String name)

Specified by:
getByName in interface com.trendmicro.grid.acl.ds.VendorRepository

getReferenceByName

public JpaVendor getReferenceByName(String name)
Returns a lightweight reference used to satisfy foreign key constraints.

Parameters:
name - the name of the vendor.
Returns:
a lightweight reference used to satisfy foreign key constraints.

listNames

public com.trendmicro.grid.acl.l0.datatypes.NameListPage listNames(int pageNumber)

Specified by:
listNames in interface com.trendmicro.grid.acl.ds.VendorRepository