Index

A C D F H I J N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

autoIncrement() - Element in annotation interface net.sf.persism.annotations.Column
Deprecated.

C

caseSensitive() - Element in annotation interface net.sf.persism.annotations.Join
Indicates that you use String primary/foreign key values in your DB which are case-sensitive.
clone() - Method in class net.sf.persism.PersistableObject
Used by saveReadState for persismOriginalValue
close() - Method in class net.sf.persism.Session
Close the connection
Column - Annotation Interface in net.sf.persism.annotations
Optional annotation defining a column mapping for a property on the class.

D

dataObject() - Method in class net.sf.persism.Result
Instance of the possibly modified object after insert.
delete(Class<?>, Parameters) - Method in class net.sf.persism.Session
Deletes data from the database based on the specified primary keys provided
delete(Class<?>, SQL) - Method in class net.sf.persism.Session
Deletes data from the database based on the specified WHERE clause
delete(Class<?>, SQL, Parameters) - Method in class net.sf.persism.Session
Deletes data from the database based on the specified WHERE clause and parameters
delete(T) - Method in class net.sf.persism.Session
Deletes the data object from the database.

F

fetch(Class<T>, Parameters) - Method in class net.sf.persism.Session
Fetch object by primary key(s)
fetch(Class<T>, SQL) - Method in class net.sf.persism.Session
Fetch object by arbitrary SQL
fetch(Class<T>, SQL, Parameters) - Method in class net.sf.persism.Session
Fetch an object of the specified type from the database.
fetch(Object) - Method in class net.sf.persism.Session
Fetch an object from the database by it's primary key(s).

H

hasDefault() - Element in annotation interface net.sf.persism.annotations.Column
Indicates that this column has a default value in the database.

I

insert(T) - Method in class net.sf.persism.Session
Inserts the data object in the database refreshing with autoinc and other defaults that may exist.

J

Join - Annotation Interface in net.sf.persism.annotations
Indicates that the property value is set by joining from another table (pojo class).

N

name() - Element in annotation interface net.sf.persism.annotations.Column
Name of the column mapped to the property.
net.sf.persism - package net.sf.persism
Persism main API.
net.sf.persism.annotations - package net.sf.persism.annotations
Persism annotations.
none() - Static method in class net.sf.persism.Parameters
Represents no Parameters.
NotColumn - Annotation Interface in net.sf.persism.annotations
Indicates that the property is not mapped to a column.
NotTable - Annotation Interface in net.sf.persism.annotations
Indicates that the class represents the result of query instead of a table.

O

onProperties() - Element in annotation interface net.sf.persism.annotations.Join
Comma seperated property names whose values are used to join to the target table.

P

Parameters - Class in net.sf.persism
Helper Class to represent parameters to a query.
params(Object...) - Static method in class net.sf.persism.Parameters
Static initializer for a new set of Parameters.
params(Map<String, Object>) - Static method in class net.sf.persism.Parameters
Static initializer for named parameters.
PersismException - Exception in net.sf.persism
General RuntimeException used by Persism.
PersismException(String) - Constructor for exception net.sf.persism.PersismException
PersismException with a message
PersismException(String, Throwable) - Constructor for exception net.sf.persism.PersismException
PersismException with a message and a cause
Persistable<T> - Interface in net.sf.persism
Indicates that Persism should keep track of changed columns in order to only include those columns in the SQL UPDATE statement.
PersistableObject<T> - Class in net.sf.persism
Persism uses information from this class to detect which properties are modified in your data objects and only includes those columns in the SQL UPDATE statements.
PersistableObject() - Constructor for class net.sf.persism.PersistableObject
 
primary() - Element in annotation interface net.sf.persism.annotations.Column
Indicates that this column is a primary key.
proc(String) - Static method in class net.sf.persism.SQL
Static initializer for a new SQL stored procedure string.

Q

query(Class<T>) - Method in class net.sf.persism.Session
Query to return all results.
query(Class<T>, Parameters) - Method in class net.sf.persism.Session
Query to return any results matching the primary key values provided.
query(Class<T>, SQL) - Method in class net.sf.persism.Session
Query for any arbitrary SQL statement.
query(Class<T>, SQL, Parameters) - Method in class net.sf.persism.Session
Query for a list of objects of the specified class using the specified SQL query and parameters.

R

readOnly() - Element in annotation interface net.sf.persism.annotations.Column
Indicates this column is read-only.
readOriginalValue() - Method in interface net.sf.persism.Persistable
Getter (but not a Getter) for the data object in it's original state.
readOriginalValue() - Method in class net.sf.persism.PersistableObject
 
Result<T> - Class in net.sf.persism
Result of an insert, update or delete.
Result(int, T) - Constructor for class net.sf.persism.Result
 
rows() - Method in class net.sf.persism.Result
Return value from jdbc statement getUpdateCount after an insert.

S

saveReadState() - Method in interface net.sf.persism.Persistable
Saves the current state of the data object to later detect changes for SQL UPDATE statements.
saveReadState() - Method in class net.sf.persism.PersistableObject
 
Session - Class in net.sf.persism
Performs various read and write operations in the database.
Session(Connection) - Constructor for class net.sf.persism.Session
 
Session(Connection, String) - Constructor for class net.sf.persism.Session
Constructor for Session where you want to specify the Session Key.
sproket.github.io.persism - module sproket.github.io.persism
Persism 2.2.0
sql(String) - Static method in class net.sf.persism.SQL
Method to instantiate a regular SQL string.
SQL - Class in net.sf.persism
Simple wrapper for SQL String.

T

Table - Annotation Interface in net.sf.persism.annotations
Defines the table name for a given class.
to() - Element in annotation interface net.sf.persism.annotations.Join
Class of the POJO that this class joins to.
toProperties() - Element in annotation interface net.sf.persism.annotations.Join
Comma seperated property names whose values are used to join to the parent table.
toString() - Method in class net.sf.persism.Result
 

U

update(T) - Method in class net.sf.persism.Session
Updates the data object in the database.

V

value() - Element in annotation interface net.sf.persism.annotations.Table
Table Name
value() - Element in annotation interface net.sf.persism.annotations.View
View Name
View - Annotation Interface in net.sf.persism.annotations
Indicates this class represents a view.

W

where(String) - Static method in class net.sf.persism.SQL
Method used to specify an SQL WHERE clause for an SQL Statement.
withTransaction(Runnable) - Method in class net.sf.persism.Session
Function block of database operations to group together in one transaction.
A C D F H I J N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form